X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Finit.c;h=ecac1e7e2fd168b3831aea109a32d65ad093cb20;hb=108c622a9561676b4df437c318959f79e42d4675;hp=06f6e4bbb156d8e021d775ecdf6a234bd23663ce;hpb=5ba63317aca8054280b18453790d23a448bdf92c;p=deb_libnfs.git diff --git a/lib/init.c b/lib/init.c index 06f6e4b..ecac1e7 100644 --- a/lib/init.c +++ b/lib/init.c @@ -11,15 +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" #else -#include #include #endif/*WIN32*/ #define _GNU_SOURCE +#ifdef HAVE_UNISTD_H +#include +#endif + #include #include #include @@ -198,11 +208,7 @@ void rpc_destroy_context(struct rpc_context *rpc) rpc->auth =NULL; if (rpc->fd != -1) { -#if defined(WIN32) - closesocket(rpc->fd); -#else close(rpc->fd); -#endif } if (rpc->encodebuf != NULL) {