[osx] - fix compile
authorMemphiz <memphis@machzwo.de>
Thu, 10 Apr 2014 18:31:25 +0000 (20:31 +0200)
committerMemphiz <memphis@machzwo.de>
Thu, 10 Apr 2014 18:35:44 +0000 (20:35 +0200)
include/nfsc/libnfs.h
lib/libnfs-sync.c

index 55f0280b468b4a54ac4e15fd7e7042343b2a54d2..0725de6cee91205b667201fe57926938a4e7b7a8 100644 (file)
@@ -28,6 +28,9 @@
 #if defined(AROS)
 #include <sys/time.h>
 #endif
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/time.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {
index 6e329f96af76f37b761a5f6e0a9ce529feca7646..d4a54513f2647df3e3020bea932971223f3d8d70 100644 (file)
 #include "win32_compat.h"
 #endif
 
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>
 #endif
 #include <sys/ioctl.h>
 #endif
 
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-
 #ifdef HAVE_POLL_H
 #include <poll.h>
 #endif