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
svn/tags/lighttpd-1.4.18
Jan Kneschke 2007-09-02 19:48:47 +00:00
parent 66c4c8f1dd
commit 29fdd34abd
2 changed files with 6 additions and 2 deletions

3
NEWS
View File

@ -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

View File

@ -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);
}