[xbuild] Fix bug #671700, resource naming in presence of "Link".
[mono.git] / support / macros.c
index cba5e23b55ba90cdb7d2436547ce4e3e237de849..d2cf5e7bcdbb95922b01c51f2200283350af380d 100644 (file)
@@ -9,6 +9,7 @@
 #include <dirent.h>
 #include <string.h>
 #include <glib.h>
+#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 */
+