From 4a9591af924332a475a6f53249ce9be65a1558f1 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 26 May 2017 18:39:41 -0500 Subject: [PATCH] Quiet windows warning about struct passwd --- lib/roken/roken.h.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index c18d85fa0..5b9affeac 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -1,6 +1,6 @@ /* -*- C -*- */ /* - * Copyright (c) 1995-2005 Kungliga Tekniska Högskolan + * Copyright (c) 1995-2017 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -641,7 +641,6 @@ ROKEN_LIB_FUNCTION char* ROKEN_LIB_CALL getcwd(char *, size_t); #include ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwnam (const char *); ROKEN_LIB_FUNCTION struct passwd * ROKEN_LIB_CALL k_getpwuid (uid_t); -#endif #ifdef POSIX_GETPWNAM_R #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 rk_getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **); #endif +#endif ROKEN_LIB_FUNCTION const char * ROKEN_LIB_CALL get_default_username (void);