*/
#ifdef WIN32
#include "win32_compat.h"
-#else
-#include <sys/types.h>
-#include <arpa/inet.h>
-#endif/*WIN32*/
+#endif
+
+#ifdef AROS
+#include "aros_compat.h"
+#endif
#include <stdlib.h>
#include <string.h>
*u = ntohl(*(uint32_t *)&zdrs->buf[zdrs->pos]);
zdrs->pos += 4;
*u <<= 32;
- *u |= ntohl(*(uint32_t *)&zdrs->buf[zdrs->pos]);
+ *u |= (uint32_t)ntohl(*(uint32_t *)&zdrs->buf[zdrs->pos]);
zdrs->pos += 4;
return TRUE;
break;
struct AUTH *libnfs_authunix_create_default(void)
{
- return libnfs_authunix_create("libnfs", getuid(), -1, 0, NULL);
+#ifdef WIN32
+ return libnfs_authunix_create("libnfs", 65534, 65534, 0, NULL);
+#else
+ return libnfs_authunix_create("libnfs", getuid(), getgid(), 0, NULL);
+#endif
}
void libnfs_auth_destroy(struct AUTH *auth)