#ifdef WIN32
#include "win32_compat.h"
#else
+#include <sys/types.h>
#include <arpa/inet.h>
#endif/*WIN32*/
struct AUTH *libnfs_authunix_create_default(void)
{
- return libnfs_authunix_create("libnfs", getuid(), -1, 0, NULL);
+#ifdef WIN32
+ return libnfs_authunix_create("libnfs", 65535, 65535, 0, NULL);
+#else
+ return libnfs_authunix_create("libnfs", getuid(), getgid(), 0, NULL);
+#endif
}
void libnfs_auth_destroy(struct AUTH *auth)