fixed compile error on IRIX 6.5.x on prctl()
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1980 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
66c4c8f1dd
commit
29fdd34abd
3
NEWS
3
NEWS
|
@ -3,7 +3,8 @@
|
|||
NEWS
|
||||
====
|
||||
|
||||
- 1.4.17 -
|
||||
- 1.4.18 -
|
||||
* fixed compile error on IRIX 6.5.x on prctl() (#1333)
|
||||
|
||||
|
||||
- 1.4.17 - 2007-08-29
|
||||
|
|
|
@ -775,7 +775,10 @@ int main (int argc, char **argv) {
|
|||
setuid(pwd->pw_uid);
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_SYS_PRCTL_H
|
||||
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_DUMPABLE)
|
||||
/**
|
||||
* on IRIX 6.5.30 they have prctl() but no DUMPABLE
|
||||
*/
|
||||
if (srv->srvconf.enable_cores) {
|
||||
prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue