Annotation of /trunk/slang/patches/slang-1.4.9-gcc4.patch
Parent Directory | Revision Log
Revision 153 -
(hide annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 1110 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 1110 byte(s)
-import
1 | niro | 153 | Patch by Robert Scheck <redhat@linuxnetz.de> for slang >= 1.4.9, which |
2 | makes slang rebuildable using gcc 4. | ||
3 | |||
4 | --- slang-1.4.9/src/sltoken.c 2003-03-23 08:06:40.000000000 +0100 | ||
5 | +++ slang-1.4.9/src/sltoken.c.gcc4 2005-03-14 09:01:16.000000000 +0100 | ||
6 | @@ -789,7 +789,7 @@ | ||
7 | #if _SLANG_HAS_DEBUG_CODE | ||
8 | tok->line_number++; | ||
9 | #endif | ||
10 | - Input_Line = LLT->read(LLT); | ||
11 | + Input_Line = (LLT->read) (LLT); | ||
12 | if ((NULL == Input_Line) || SLang_Error) | ||
13 | { | ||
14 | Input_Line_Pointer = Input_Line = NULL; | ||
15 | @@ -1185,7 +1185,7 @@ | ||
16 | { | ||
17 | case '\n': | ||
18 | case 0: | ||
19 | - if (NULL == (Input_Line = LLT->read(LLT))) | ||
20 | + if (NULL == (Input_Line = (LLT->read) (LLT))) | ||
21 | { | ||
22 | Input_Line_Pointer = Input_Line = NULL; | ||
23 | return; | ||
24 | --- slang-1.4.9/src/slposio.c 2003-03-23 08:06:40.000000000 +0100 | ||
25 | +++ slang-1.4.9/src/slposio.c.gcc4 2005-03-14 09:03:00.000000000 +0100 | ||
26 | @@ -166,7 +166,7 @@ | ||
27 | || (NULL == (b = SLmalloc (len + 1)))) | ||
28 | goto return_error; | ||
29 | |||
30 | - if (-1 == f->read (f->fd, b, &len)) | ||
31 | + if (-1 == (f->read) (f->fd, b, &len)) | ||
32 | { | ||
33 | _SLerrno_errno = errno; | ||
34 | goto return_error; |