From c04df41256ab2b6e3c15df6b080be7450a7c8709 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 25 Aug 2008 21:04:41 +0000 Subject: - Update to 3.9-7 PR: 126298 Submitted by: Takeshi MUTOH (maintainer) --- ...ins__UnixOSProcessPlugin__UnixOSProcessPlugin.c | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lang/squeak-dev/files/patch-platforms__unix__src__plugins__UnixOSProcessPlugin__UnixOSProcessPlugin.c (limited to 'lang/squeak-dev/files/patch-platforms__unix__src__plugins__UnixOSProcessPlugin__UnixOSProcessPlugin.c') diff --git a/lang/squeak-dev/files/patch-platforms__unix__src__plugins__UnixOSProcessPlugin__UnixOSProcessPlugin.c b/lang/squeak-dev/files/patch-platforms__unix__src__plugins__UnixOSProcessPlugin__UnixOSProcessPlugin.c new file mode 100644 index 000000000000..91518b93b728 --- /dev/null +++ b/lang/squeak-dev/files/patch-platforms__unix__src__plugins__UnixOSProcessPlugin__UnixOSProcessPlugin.c @@ -0,0 +1,47 @@ +--- platforms/unix/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c.org Sun Apr 23 16:18:27 2006 ++++ platforms/unix/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c Sun Apr 23 16:20:43 2006 +@@ -1818,7 +1818,7 @@ + return interpreterProxy->primitiveFail(); + } + sqFile = interpreterProxy->arrayValueOf(sqFileOop); +- if ((feof(sqFile->file)) == 0) { ++ if ((feof((FILE *)sqFile->file)) == 0) { + result = interpreterProxy->falseObject(); + } else { + result = interpreterProxy->trueObject(); +@@ -1870,7 +1870,7 @@ + + /* Set up the flock structure parameter for fcntl() */ + +- fileNo = fileno(sqFile->file); ++ fileNo = fileno((FILE *)sqFile->file); + if (exclusive) { + lockStruct.l_type = F_WRLCK; + } else { +@@ -2897,7 +2897,7 @@ + + /* Set up the flock structure parameter for fcntl() */ + +- fileNo = fileno(sqFile->file); ++ fileNo = fileno((FILE *)sqFile->file); + if (exclusive) { + lockStruct.l_type = F_WRLCK; + } else { +@@ -2957,7 +2957,7 @@ + return interpreterProxy->primitiveFail(); + } + sqFile = interpreterProxy->arrayValueOf(sqFileOop); +- fileNo = fileno(sqFile->file); ++ fileNo = fileno((FILE *)sqFile->file); + interpreterProxy->pop(2); + interpreterProxy->pushInteger(fileNo); + } +@@ -3001,7 +3001,7 @@ + + /* Set up the flock structure parameter for fcntl() */ + +- fileNo = fileno(sqFile->file); ++ fileNo = fileno((FILE *)sqFile->file); + lockStruct.l_type = F_UNLCK; + lockStruct.l_whence = SEEK_SET; + lockStruct.l_start = start; -- cgit v1.2.3