X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fmacros.c;h=e15fa76b7edb0a35774956c4e1070f10e366fd35;hb=ef7a4c06206976de7ef2e974267407347ddb75a4;hp=cba5e23b55ba90cdb7d2436547ce4e3e237de849;hpb=3d693eeb90339833968d66c3dc9fde2fa3ba2cef;p=mono.git diff --git a/support/macros.c b/support/macros.c index cba5e23b55b..e15fa76b7ed 100644 --- a/support/macros.c +++ b/support/macros.c @@ -9,6 +9,8 @@ #include #include #include +#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */ +#include "map.h" int wifexited (int status) { @@ -98,6 +100,16 @@ char *helper_Mono_Posix_readdir(void *dir) { return strdup (e->d_name); } +#if HAVE_GETPWNAM_R +int helper_Mono_Posix_getpwnamuid (int mode, char *in_name, int in_uid, + char **account, + char **password, + int *uid, + int *gid, + char **name, + char **home, + char **shell); + int helper_Mono_Posix_getpwnamuid (int mode, char *in_name, int in_uid, char **account, char **password, @@ -144,3 +156,5 @@ int helper_Mono_Posix_getpwnamuid (int mode, char *in_name, int in_uid, return 0; } +#endif /* def HAVE_GETPWNAM_R */ +