projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert 67496 as it makes running Paint.NET impossible
[mono.git]
/
support
/
macros.c
diff --git
a/support/macros.c
b/support/macros.c
index c64c7dae52832cde199f77566d25f3ac8696abeb..cba5e23b55ba90cdb7d2436547ce4e3e237de849 100644
(file)
--- a/
support/macros.c
+++ b/
support/macros.c
@@
-1,3
+1,4
@@
+#include "mph.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
@@
-7,6
+8,7
@@
#include <errno.h>
#include <dirent.h>
#include <string.h>
#include <errno.h>
#include <dirent.h>
#include <string.h>
+#include <glib.h>
int wifexited (int status)
{
int wifexited (int status)
{
@@
-38,7
+40,7
@@
int wstopsig (int status)
return WSTOPSIG (status);
}
return WSTOPSIG (status);
}
-int helper_Mono_Posix_Stat(char *filename, int dereference,
+int helper_Mono_Posix_Stat(c
onst c
har *filename, int dereference,
int *device,
int *inode,
int *mode,
int *device,
int *inode,
int *mode,
@@
-46,12
+48,12
@@
int helper_Mono_Posix_Stat(char *filename, int dereference,
int *uid,
int *gid,
int *rdev,
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;
) {
int ret;
struct stat buf;
@@
-90,8
+92,8
@@
char *helper_Mono_Posix_GetGroupName(int gid) {
return strdup (p->gr_name);
}
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 (e == NULL) return NULL;
return strdup (e->d_name);
}