repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.3.0
[deb_libnfs.git]
/
examples
/
nfsclient-raw.c
diff --git
a/examples/nfsclient-raw.c
b/examples/nfsclient-raw.c
index 7956781a1b9f62cce46e2f1df65dd6cbb35b260d..b125581ac9337bb6fdf0021bc826d7f1fa29da5c 100644
(file)
--- a/
examples/nfsclient-raw.c
+++ b/
examples/nfsclient-raw.c
@@
-19,13
+19,17
@@
* This allow accurate control of the exact commands that are being used.
*/
* This allow accurate control of the exact commands that are being used.
*/
+#ifdef WIN32
+#include "win32_compat.h"
+#else
+#include <poll.h>
+#endif
#define SERVER "10.1.1.27"
#define EXPORT "/shared"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SERVER "10.1.1.27"
#define EXPORT "/shared"
#include <stdio.h>
#include <stdlib.h>
#include <string.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"
@@
-320,7
+324,7
@@
void pmap_getport1_cb(struct rpc_context *rpc, int status, void *data, void *pri
}
printf("Send getport request asking for MOUNT port\n");
}
printf("Send getport request asking for MOUNT port\n");
- if (rpc_pmap_getport_async(rpc, MOUNT_PROGRAM, MOUNT_V3, pmap_getport2_cb, client) != 0) {
+ if (rpc_pmap_getport_async(rpc, MOUNT_PROGRAM, MOUNT_V3,
IPPROTO_TCP,
pmap_getport2_cb, client) != 0) {
printf("Failed to send getport request\n");
exit(10);
}
printf("Failed to send getport request\n");
exit(10);
}
@@
-341,7
+345,7
@@
void pmap_null_cb(struct rpc_context *rpc, int status, void *data, void *private
printf("Got reply from server for PORTMAP/NULL procedure.\n");
printf("Send getport request asking for MOUNT port\n");
printf("Got reply from server for PORTMAP/NULL procedure.\n");
printf("Send getport request asking for MOUNT port\n");
- if (rpc_pmap_getport_async(rpc, RQUOTA_PROGRAM, RQUOTA_V1, pmap_getport1_cb, client) != 0) {
+ if (rpc_pmap_getport_async(rpc, RQUOTA_PROGRAM, RQUOTA_V1,
IPPROTO_TCP,
pmap_getport1_cb, client) != 0) {
printf("Failed to send getport request\n");
exit(10);
}
printf("Failed to send getport request\n");
exit(10);
}