From: André Malo Date: Wed, 12 Feb 2003 15:28:28 +0000 (+0000) Subject: Fix suexec compile error under SUNOS4, where strerror() doesn't exist. X-Git-Tag: pre_ajp_proxy~2161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22d98172e82238c4e25688b0e30dd5f3d5bef694;p=apache Fix suexec compile error under SUNOS4, where strerror() doesn't exist. PR: 5913, 9977 Submitted by: Jonathan W Miner git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98618 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 56e6751c8b..ef6117e7b2 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,10 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) Fix suexec compile error under SUNOS4, where strerror() doesn't + exist. PR 5913, 9977. + [Jonathan W Miner ] + *) Fix mod_auth_digest not to use local paths for the domain parameter on non-unix systems. PR 16937. [André Malo] diff --git a/support/suexec.c b/support/suexec.c index cde32e6783..78fb7679a7 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -111,6 +111,11 @@ int initgroups(const char *name, gid_t basegid) } #endif +#if defined(SUNOS4) +extern char *sys_errlist[]; +#define strerror(x) sys_errlist[(x)] +#endif + #if defined(PATH_MAX) #define AP_MAXPATH PATH_MAX #elif defined(MAXPATHLEN)