diff options
author | André Malo <nd@apache.org> | 2003-02-22 15:21:04 +0000 |
---|---|---|
committer | André Malo <nd@apache.org> | 2003-02-22 15:21:04 +0000 |
commit | 25bfc6865fea51e0529a75c5c82ccd8bbcb2c613 (patch) | |
tree | 622f50e0e317f8361a5a05bbc27a1ad43fea8917 /support | |
parent | 0ff8e91f3a6f16c7f85fa4497bb815da6987aa3e (diff) | |
download | httpd-25bfc6865fea51e0529a75c5c82ccd8bbcb2c613.tar.gz |
Fix suexec compile error under SUNOS4, where strerror() doesn't exist.
PR: 5913, 9977
Submitted by: Jonathan W Miner <Jonathan.W.Miner@lmco.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@98755 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/suexec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/support/suexec.c b/support/suexec.c index ec04312787..1bf6d1f06a 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) |