diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_network_lib.h | 5 | ||||
-rw-r--r-- | src/include/gnunet_os_lib.h | 2 | ||||
-rw-r--r-- | src/include/platform.h | 8 |
3 files changed, 11 insertions, 4 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 65b2042d5..a14d5f0bb 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -96,7 +96,7 @@ GNUNET_NETWORK_socket_accept (const struct GNUNET_NETWORK_Handle *desc, | |||
96 | * @return NULL on error (including not supported on target platform) | 96 | * @return NULL on error (including not supported on target platform) |
97 | */ | 97 | */ |
98 | struct GNUNET_NETWORK_Handle * | 98 | struct GNUNET_NETWORK_Handle * |
99 | GNUNET_NETWORK_socket_box_native (int fd); | 99 | GNUNET_NETWORK_socket_box_native (SOCKTYPE fd); |
100 | 100 | ||
101 | 101 | ||
102 | /** | 102 | /** |
@@ -320,8 +320,7 @@ GNUNET_NETWORK_fdset_set (struct GNUNET_NETWORK_FDSet *fds, | |||
320 | const struct GNUNET_NETWORK_Handle *desc); | 320 | const struct GNUNET_NETWORK_Handle *desc); |
321 | 321 | ||
322 | 322 | ||
323 | #ifdef __MINGW32__ | 323 | #if WINDOWS |
324 | /* TODO: maybe #ifdef WINDOWS? -ndurner */ | ||
325 | /** | 324 | /** |
326 | * Add a W32 file handle to the fd set | 325 | * Add a W32 file handle to the fd set |
327 | * @param fds fd set | 326 | * @param fds fd set |
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h index aed5e3b01..ff324e18a 100644 --- a/src/include/gnunet_os_lib.h +++ b/src/include/gnunet_os_lib.h | |||
@@ -275,7 +275,7 @@ GNUNET_OS_start_process_va (struct GNUNET_DISK_PipeHandle *pipe_stdin, | |||
275 | * @return pointer to process structure of the new process, NULL on error | 275 | * @return pointer to process structure of the new process, NULL on error |
276 | */ | 276 | */ |
277 | struct GNUNET_OS_Process * | 277 | struct GNUNET_OS_Process * |
278 | GNUNET_OS_start_process_v (const int *lsocks, const char *filename, | 278 | GNUNET_OS_start_process_v (const SOCKTYPE *lsocks, const char *filename, |
279 | char *const argv[]); | 279 | char *const argv[]); |
280 | 280 | ||
281 | 281 | ||
diff --git a/src/include/platform.h b/src/include/platform.h index 0aa59b72f..179503731 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -246,4 +246,12 @@ atoll (const char *nptr); | |||
246 | #define MAKE_UNALIGNED(val) val | 246 | #define MAKE_UNALIGNED(val) val |
247 | #endif | 247 | #endif |
248 | 248 | ||
249 | #if WINDOWS | ||
250 | #define FDTYPE HANDLE | ||
251 | #define SOCKTYPE SOCKET | ||
252 | #else | ||
253 | #define FDTYPE int | ||
254 | #define SOCKTYPE int | ||
255 | #endif | ||
256 | |||
249 | #endif | 257 | #endif |