From 29fdd34abdd9c5c95d0b3ba7a045ce9610e4c101 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Sun, 2 Sep 2007 19:48:47 +0000 Subject: [PATCH] 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 --- NEWS | 3 ++- src/server.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 592a9937..9cba8591 100644 --- a/NEWS +++ b/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 diff --git a/src/server.c b/src/server.c index b610cdcd..113059ab 100644 --- a/src/server.c +++ b/src/server.c @@ -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); }