repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZDR: we need to include both arpa/inet.h and time.h
[deb_libnfs.git]
/
lib
/
libnfs-zdr.c
diff --git
a/lib/libnfs-zdr.c
b/lib/libnfs-zdr.c
index fd80a8d1c7f33e3c853378008c2bbcdcb2cff41f..0ef4fc02ce00b712535a2d5d266ce374f0d73dc6 100644
(file)
--- a/
lib/libnfs-zdr.c
+++ b/
lib/libnfs-zdr.c
@@
-20,9
+20,15
@@
* i.e. zdrmem_create() buffers.
* It aims to be compatible with normal rpcgen generated functions.
*/
* i.e. zdrmem_create() buffers.
* It aims to be compatible with normal rpcgen generated functions.
*/
+#ifdef WIN32
+#include "win32_compat.h"
+#else
+#include <arpa/inet.h>
+#endif/*WIN32*/
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include "libnfs-zdr.h"
struct opaque_auth _null_auth;
#include "libnfs-zdr.h"
struct opaque_auth _null_auth;
@@
-160,9
+166,15
@@
bool_t libnfs_zdr_bytes(ZDR *zdrs, char **bufp, uint32_t *size, uint32_t maxsize
}
}
-bool_t libnfs_zdr_enum(ZDR *zdrs,
int32
_t *e)
+bool_t libnfs_zdr_enum(ZDR *zdrs,
enum
_t *e)
{
{
- return libnfs_zdr_u_int(zdrs, (uint32_t *)e);
+ bool_t ret;
+ int32_t i = *e;
+
+ ret = libnfs_zdr_u_int(zdrs, (uint32_t *)&i);
+ *e = i;
+
+ return ret;
}
bool_t libnfs_zdr_bool(ZDR *zdrs, bool_t *b)
}
bool_t libnfs_zdr_bool(ZDR *zdrs, bool_t *b)