From a89d412ced2d9498260dae34fa8aa9e28fa56ca8 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 23 Mar 2014 21:27:25 +0000 Subject: Provide fake getpwent_r to reduce changes from upstream --- include/mingw.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index b1a28b473..bcf61dbac 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -76,6 +76,9 @@ struct passwd { IMPL(getpwnam,struct passwd *,NULL,const char *name UNUSED_PARAM); struct passwd *getpwuid(int uid); +static inline void setpwent(void) {} +static inline void endpwent(void) {} +IMPL(getpwent_r,int,ENOENT,struct passwd *pwbuf UNUSED_PARAM,char *buf UNUSED_PARAM,size_t buflen UNUSED_PARAM,struct passwd **pwbufp UNUSED_PARAM); /* * signal.h -- cgit v1.2.3-55-g6feb