diff options
author | bapt <bapt@FreeBSD.org> | 2011-03-11 15:11:26 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2011-03-11 15:11:26 +0800 |
commit | 8616258455faeac30382e51dd058e020eb695e99 (patch) | |
tree | 20d7a5e628b06068050c593c89694657116c97dc /lang/picoc | |
parent | c5b920a7b7648a51d9760c2b942c6370460b7eef (diff) | |
download | freebsd-ports-gnome-8616258455faeac30382e51dd058e020eb695e99.tar.gz freebsd-ports-gnome-8616258455faeac30382e51dd058e020eb695e99.tar.zst freebsd-ports-gnome-8616258455faeac30382e51dd058e020eb695e99.zip |
Add forgotten patches
Reported by: (pointyhat) Pav
Diffstat (limited to 'lang/picoc')
-rw-r--r-- | lang/picoc/files/patch-cstdlib__stdio.c | 11 | ||||
-rw-r--r-- | lang/picoc/files/patch-cstdlib__unistd.c | 42 |
2 files changed, 53 insertions, 0 deletions
diff --git a/lang/picoc/files/patch-cstdlib__stdio.c b/lang/picoc/files/patch-cstdlib__stdio.c new file mode 100644 index 000000000000..69197e88ccf3 --- /dev/null +++ b/lang/picoc/files/patch-cstdlib__stdio.c @@ -0,0 +1,11 @@ +--- ./cstdlib/stdio.c.orig 2011-02-21 06:22:13.000000000 +0100 ++++ ./cstdlib/stdio.c 2011-03-11 08:08:19.710970864 +0100 +@@ -414,7 +414,7 @@ + + void StdioFileno(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) + { +- ReturnValue->Val->Integer = fileno(Param[0]->Val->Pointer); ++ ReturnValue->Val->Integer = fileno((FILE *)Param[0]->Val->Pointer); + } + + void StdioFflush(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) diff --git a/lang/picoc/files/patch-cstdlib__unistd.c b/lang/picoc/files/patch-cstdlib__unistd.c new file mode 100644 index 000000000000..0813c1cb36b5 --- /dev/null +++ b/lang/picoc/files/patch-cstdlib__unistd.c @@ -0,0 +1,42 @@ +--- ./cstdlib/unistd.c.orig 2011-02-21 06:22:13.000000000 +0100 ++++ ./cstdlib/unistd.c 2011-03-11 08:09:48.884688383 +0100 +@@ -80,10 +80,10 @@ + ReturnValue->Val->Integer = fchdir(Param[0]->Val->Integer); + } + +-void UnistdFdatasync(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) ++/*void UnistdFdatasync(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) + { + ReturnValue->Val->Integer = fdatasync(Param[0]->Val->Integer); +-} ++}*/ + + void UnistdFork(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) + { +@@ -278,7 +278,7 @@ + + void UnistdSetpgrp(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) + { +- ReturnValue->Val->Integer = setpgrp(); ++ ReturnValue->Val->Integer = setpgrp(Param[0]->Val->Integer, Param[1]->Val->Integer); + } + + void UnistdSetregid(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) +@@ -416,7 +416,7 @@ + { Unistd_Exit, "void _exit(int);" }, + { UnistdFchown, "int fchown(int, uid_t, gid_t);" }, + { UnistdFchdir, "int fchdir(int);" }, +- { UnistdFdatasync, "int fdatasync(int);" }, ++/* { UnistdFdatasync, "int fdatasync(int);" },*/ + { UnistdFork, "pid_t fork(void);" }, + { UnistdFpathconf, "long fpathconf(int, int);" }, + { UnistdFsync, "int fsync(int);" }, +@@ -458,7 +458,7 @@ + { UnistdSbrk, "void *sbrk(intptr_t);" }, + { UnistdSetgid, "int setgid(gid_t);" }, + { UnistdSetpgid, "int setpgid(pid_t, pid_t);" }, +- { UnistdSetpgrp, "pid_t setpgrp(void);" }, ++ { UnistdSetpgrp, "pid_t setpgrp(pid_t, pid_t);" }, + { UnistdSetregid, "int setregid(gid_t, gid_t);" }, + { UnistdSetreuid, "int setreuid(uid_t, uid_t);" }, + { UnistdSetsid, "pid_t setsid(void);" }, |