repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[win32] - make it compile on win32
[deb_libnfs.git]
/
examples
/
nfsclient-sync.c
diff --git
a/examples/nfsclient-sync.c
b/examples/nfsclient-sync.c
index 00e4c88042eba4a3e50553acb8e79460eb11c03d..449d8e3342d8abaf1764bf8b3d095a6315e8930a 100644
(file)
--- a/
examples/nfsclient-sync.c
+++ b/
examples/nfsclient-sync.c
@@
-17,7
+17,14
@@
/* Example program using the highlevel sync interface
*/
/* Example program using the highlevel sync interface
*/
-
+#ifdef WIN32
+#include "win32_compat.h"
+#else
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <sys/statvfs.h>
+#endif
+
#define SERVER "10.1.1.27"
#define EXPORT "/VIRTUAL"
#define NFSFILE "/BOOKS/Classics/Dracula.djvu.truncated"
#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)
#define _GNU_SOURCE
#if defined(WIN32)
-#include <winsock2.h>
-typedef int off_t;
#pragma comment(lib, "ws2_32.lib")
WSADATA wsaData;
#else
#pragma comment(lib, "ws2_32.lib")
WSADATA wsaData;
#else