X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Finit.c;h=ecac1e7e2fd168b3831aea109a32d65ad093cb20;hb=108c622a9561676b4df437c318959f79e42d4675;hp=ecfdcf58ad9d0c8551ec13eb1c1d8586383f81e0;hpb=622489d36e0a2d1b15f0ed9aa92a84fae1bc54fd;p=deb_libnfs.git diff --git a/lib/init.c b/lib/init.c index ecfdcf5..ecac1e7 100644 --- a/lib/init.c +++ b/lib/init.c @@ -11,16 +11,25 @@ You should have received a copy of the GNU Lesser General Public License along with this program; if not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef AROS +#include "aros_compat.h" +#endif #ifdef WIN32 #include "win32_compat.h" -#define close closesocket #else -#include #include #endif/*WIN32*/ #define _GNU_SOURCE +#ifdef HAVE_UNISTD_H +#include +#endif + #include #include #include @@ -33,10 +42,6 @@ #include "libnfs-raw.h" #include "libnfs-private.h" -#ifdef AROS -#include "aros_compat.h" -#endif - struct rpc_context *rpc_init_context(void) { struct rpc_context *rpc;