repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libnfs.h: Update open() flags docs
[deb_libnfs.git]
/
examples
/
nfsclient-async.c
diff --git
a/examples/nfsclient-async.c
b/examples/nfsclient-async.c
index d8420e14f13dad0d93c2523256943fd82a21e60e..739f220ea5a9225b7100eeb189b16956e7a2ec5e 100644
(file)
--- a/
examples/nfsclient-async.c
+++ b/
examples/nfsclient-async.c
@@
-17,6
+17,23
@@
/* Example program using the highlevel async interface.
*/
/* Example program using the highlevel async interface.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef WIN32
+#include "win32_compat.h"
+#else
+#include <sys/stat.h>
+#endif
+
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#define SERVER "10.1.1.27"
#define EXPORT "/VIRTUAL"
#define SERVER "10.1.1.27"
#define EXPORT "/VIRTUAL"
@@
-27,10
+44,7
@@
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
#include <fcntl.h>
#include <fcntl.h>
-#include <poll.h>
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"
#include "libnfs.h"
#include "libnfs-raw.h"
#include "libnfs-raw-mount.h"