Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 133737 Details for
Bug 195977
sys-libs/gpm-1.20.1-r6 fails to build w/ linux-headers-2.6.23 due to missing "OPEN_MAX"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Tomas Janousek <tjanouse redhat com>
gpm-1.20.1-openmax.patch (text/plain), 1.26 KB, created by
Konstantin Shabanov
on 2007-10-18 05:01:53 UTC
(
hide
)
Description:
Tomas Janousek <tjanouse redhat com>
Filename:
MIME Type:
Creator:
Konstantin Shabanov
Created:
2007-10-18 05:01:53 UTC
Size:
1.26 KB
patch
obsolete
>--- NEW FILE gpm-1.20.1-openmax.patch --- >--- gpm-1.20.1/src/prog/gpm-root.y.openmax 2002-12-24 23:57:16.000000000 +0100 >+++ gpm-1.20.1/src/prog/gpm-root.y 2007-07-24 20:45:46.000000000 +0200 >@@ -525,7 +525,9 @@ > open("/dev/null",O_RDONLY); /* stdin */ > open(consolename,O_WRONLY); /* stdout */ > dup(1); /* stderr */ >- for (i=3;i<OPEN_MAX; i++) close(i); >+ int open_max = sysconf(_SC_OPEN_MAX); >+ if (open_max == -1) open_max = 1024; >+ for (i=3;i<open_max; i++) close(i); > execl("/bin/sh","sh","-c",self->arg,(char *)NULL); > exit(1); /* shouldn't happen */ > default: return 0; >--- gpm-1.20.1/src/special.c.openmax 2007-07-24 20:45:46.000000000 +0200 >+++ gpm-1.20.1/src/special.c 2007-07-24 20:45:46.000000000 +0200 >@@ -156,7 +156,9 @@ > open(GPM_NULL_DEV,O_RDONLY); /* stdin */ > open(console.device, O_WRONLY); /* stdout */ > dup(1); /* stderr */ >- for (i=3;i<OPEN_MAX; i++) close(i); >+ int open_max = sysconf(_SC_OPEN_MAX); >+ if (open_max == -1) open_max = 1024; >+ for (i=3;i<open_max; i++) close(i); > execl("/bin/sh","sh","-c",command,(char *)NULL); > exit(1); /* shouldn't happen */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195977
:
133591
|
133735
|
133736
| 133737 |
134554