blob: a1b9c977e3e3faf6a1ec1dbd052d9c66fc3e5451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (C) 2007-2008 Xagasoft, All rights reserved.
*
* This file is part of the libbu++ library and is released under the
* terms of the license contained in the file LICENSE.
*/
#ifndef WIN32_COMPATIBILITY__H
#define WIN32_COMPATIBILITY__H
#ifdef WIN32
#ifndef TEMP_FAILURE_RETRY
#define TEMP_FAILURE_RETRY(expression) \
(__extension__ \
({ long int __result; \
do __result = (long int) (expression); \
while (__result == -1L && errno == EINTR); \
__result; }))
#endif
//__extension__ typedef unsigned int socklen_t;
__extension__ typedef int socklen_t;
#endif /* WIN32 */
#endif
|