Quiet windows warning about struct passwd

This commit is contained in:
Nicolas Williams
2017-05-26 18:39:41 -05:00
committed by Viktor Dukhovni
parent e0dbb59a48
commit 4a9591af92

View File

@@ -1,6 +1,6 @@
/* -*- C -*- */ /* -*- C -*- */
/* /*
* Copyright (c) 1995-2005 Kungliga Tekniska Högskolan * Copyright (c) 1995-2017 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -641,7 +641,6 @@ ROKEN_LIB_FUNCTION char* ROKEN_LIB_CALL getcwd(char *, size_t);
#include <pwd.h> #include <pwd.h>
ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwnam (const char *); ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwnam (const char *);
ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwuid (uid_t); ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwuid (uid_t);
#endif
#ifdef POSIX_GETPWNAM_R #ifdef POSIX_GETPWNAM_R
#define rk_getpwnam_r(_n, _pw, _b, _sz, _pwd) getpwnam_r(_n, _pw, _b, _sz, _pwd) #define rk_getpwnam_r(_n, _pw, _b, _sz, _pwd) getpwnam_r(_n, _pw, _b, _sz, _pwd)
@@ -649,6 +648,7 @@ ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwuid (uid_t);
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
rk_getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **); rk_getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **);
#endif #endif
#endif
ROKEN_LIB_FUNCTION const char * ROKEN_LIB_CALL get_default_username (void); ROKEN_LIB_FUNCTION const char * ROKEN_LIB_CALL get_default_username (void);