X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Fmacros.c;h=8d455889d7ca4c30ea10c8a6e7c2471afcec7179;hb=185609a22951a72e5cdaefe712c2183a0c8ded04;hp=c64c7dae52832cde199f77566d25f3ac8696abeb;hpb=0abc2e6270020edc4a5b4c66f93b4ae582815f20;p=mono.git diff --git a/support/macros.c b/support/macros.c index c64c7dae528..8d455889d7c 100644 --- a/support/macros.c +++ b/support/macros.c @@ -1,3 +1,4 @@ +#include "mph.h" #include #include #include @@ -7,6 +8,8 @@ #include #include #include +#include +#include "map.h" int wifexited (int status) { @@ -38,7 +41,7 @@ int wstopsig (int status) return WSTOPSIG (status); } -int helper_Mono_Posix_Stat(char *filename, int dereference, +int helper_Mono_Posix_Stat(const char *filename, int dereference, int *device, int *inode, int *mode, @@ -46,12 +49,12 @@ int helper_Mono_Posix_Stat(char *filename, int dereference, int *uid, int *gid, int *rdev, - long *size, - long *blksize, - long *blocks, - long *atime, - long *mtime, - long *ctime + gint64 *size, + gint64 *blksize, + gint64 *blocks, + gint64 *atime, + gint64 *mtime, + gint64 *ctime ) { int ret; struct stat buf; @@ -90,12 +93,22 @@ char *helper_Mono_Posix_GetGroupName(int gid) { return strdup (p->gr_name); } -char *helper_Mono_Posix_readdir(DIR *dir) { - struct dirent* e = readdir(dir); +char *helper_Mono_Posix_readdir(void *dir) { + struct dirent* e = readdir((DIR*) dir); if (e == NULL) return NULL; 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, @@ -142,3 +155,5 @@ int helper_Mono_Posix_getpwnamuid (int mode, char *in_name, int in_uid, return 0; } +#endif /* def HAVE_GETPWNAM_R */ +