From: Memphiz Date: Thu, 10 Apr 2014 18:31:25 +0000 (+0200) Subject: [osx] - fix compile X-Git-Tag: upstream/1.9.6^2~43^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bd2f43c8a69e24c90a297d7770641f5b68ba4340;p=deb_libnfs.git [osx] - fix compile --- diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h index 55f0280..0725de6 100644 --- a/include/nfsc/libnfs.h +++ b/include/nfsc/libnfs.h @@ -28,6 +28,9 @@ #if defined(AROS) #include #endif +#if defined(__APPLE__) && defined(__MACH__) +#include +#endif #ifdef __cplusplus extern "C" { diff --git a/lib/libnfs-sync.c b/lib/libnfs-sync.c index 6e329f9..d4a5451 100644 --- a/lib/libnfs-sync.c +++ b/lib/libnfs-sync.c @@ -29,6 +29,10 @@ #include "win32_compat.h" #endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif + #ifdef HAVE_NET_IF_H #include #endif @@ -49,10 +53,6 @@ #include #endif -#ifdef HAVE_SYS_SOCKET_H -#include -#endif - #ifdef HAVE_POLL_H #include #endif