+#include "mph.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
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,
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);
}