X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fmacros.c;h=d2cf5e7bcdbb95922b01c51f2200283350af380d;hb=4099eddfcfc2ce96d60b528d1a7376d11cbeac96;hp=cba5e23b55ba90cdb7d2436547ce4e3e237de849;hpb=53e266903ec6b2d822cf5b0c566f6374df5307a4;p=mono.git diff --git a/support/macros.c b/support/macros.c index cba5e23b55b..d2cf5e7bcdb 100644 --- a/support/macros.c +++ b/support/macros.c @@ -9,6 +9,7 @@ #include #include #include +#include "map.h" int wifexited (int status) { @@ -98,6 +99,7 @@ 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, @@ -144,3 +146,5 @@ int helper_Mono_Posix_getpwnamuid (int mode, char *in_name, int in_uid, return 0; } +#endif /* def HAVE_GETPWNAM_R */ +