repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'win32' into win32-3
[deb_libnfs.git]
/
lib
/
libnfs-sync.c
diff --git
a/lib/libnfs-sync.c
b/lib/libnfs-sync.c
index 510772fa1efe6f7e889ac7af2e7b1277157475a7..cfeb5759989ae3835172001e6719efca138758e0 100644
(file)
--- a/
lib/libnfs-sync.c
+++ b/
lib/libnfs-sync.c
@@
-18,16
+18,29
@@
* High level api to nfs filesystems
*/
* High level api to nfs filesystems
*/
+#if defined (WIN32)
+#include <winsock2.h>
+#define DllExport
+#else
+#include <strings.h>
+#include <unistd.h>
+#include <sys/statvfs.h>
+#include <poll.h>
+#include <sys/ioctl.h>
+#include <netdb.h>
+#include <sys/socket.h>
+#include <net/if.h>
+#endif
+
+#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/statvfs.h>
-#include <sys/ioctl.h>
-#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
@@
-1174,7
+1187,7
@@
void mount_free_export_list(struct exportnode *exports)
-
+#if !defined(WIN32)
void free_nfs_srvr_list(struct nfs_server_list *srv)
{
while (srv != NULL) {
void free_nfs_srvr_list(struct nfs_server_list *srv)
{
while (srv != NULL) {
@@
-1380,3
+1393,4
@@
struct nfs_server_list *nfs_find_local_servers(void)
return data.srvrs;
}
return data.srvrs;
}
+#endif