X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-sync.c;h=449d8e3342d8abaf1764bf8b3d095a6315e8930a;hb=a8a1b85846aab042cd410bf59caf617a0951380e;hp=00e4c88042eba4a3e50553acb8e79460eb11c03d;hpb=4b1097cde2eca9366c833805a529c23f7a7b02d6;p=deb_libnfs.git diff --git a/examples/nfsclient-sync.c b/examples/nfsclient-sync.c index 00e4c88..449d8e3 100644 --- a/examples/nfsclient-sync.c +++ b/examples/nfsclient-sync.c @@ -17,7 +17,14 @@ /* Example program using the highlevel sync interface */ - +#ifdef WIN32 +#include "win32_compat.h" +#else +#include +#include +#include +#endif + #define SERVER "10.1.1.27" #define EXPORT "/VIRTUAL" #define NFSFILE "/BOOKS/Classics/Dracula.djvu.truncated" @@ -28,8 +35,6 @@ #define _GNU_SOURCE #if defined(WIN32) -#include -typedef int off_t; #pragma comment(lib, "ws2_32.lib") WSADATA wsaData; #else