repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more header include cleanups
[deb_libnfs.git]
/
examples
/
nfsclient-sync.c
diff --git
a/examples/nfsclient-sync.c
b/examples/nfsclient-sync.c
index 4bd2c0b942714b26d4c72ee8305842ecdec1b5f2..70bd77a1757c18dca5cd536871afc7a8380f1bf5 100644
(file)
--- a/
examples/nfsclient-sync.c
+++ b/
examples/nfsclient-sync.c
@@
-20,20
+20,26
@@
/* Example program using the highlevel sync interface
*/
/* Example program using the highlevel sync interface
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef WIN32
#include "win32_compat.h"
#pragma comment(lib, "ws2_32.lib")
WSADATA wsaData;
#else
#include <string.h>
#ifdef WIN32
#include "win32_compat.h"
#pragma comment(lib, "ws2_32.lib")
WSADATA wsaData;
#else
#include <string.h>
-#include <fcntl.h>
#include <sys/stat.h>
#include <sys/stat.h>
-#include <unistd.h>
#ifndef AROS
#include <sys/statvfs.h>
#endif
#endif
#ifndef AROS
#include <sys/statvfs.h>
#endif
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef AROS
#include "aros_compat.h"
#endif
#ifdef AROS
#include "aros_compat.h"
#endif