]> granicus.if.org Git - apache/commitdiff
Fix suexec compile error under SUNOS4, where strerror() doesn't exist.
authorAndré Malo <nd@apache.org>
Wed, 12 Feb 2003 15:28:28 +0000 (15:28 +0000)
committerAndré Malo <nd@apache.org>
Wed, 12 Feb 2003 15:28:28 +0000 (15:28 +0000)
PR: 5913, 9977
Submitted by: Jonathan W Miner <Jonathan.W.Miner@lmco.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98618 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/suexec.c

diff --git a/CHANGES b/CHANGES
index 56e6751c8b61d45d0d976c8450b5030dbf3bcd62..ef6117e7b21f92e72a618bb4234797da33d17478 100644 (file)
--- 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 <Jonathan.W.Miner@lmco.com>]
+
   *) Fix mod_auth_digest not to use local paths for the domain parameter
      on non-unix systems. PR 16937.  [André Malo]
 
index cde32e6783865a9e979bf9d9cb3df3ec56631ea0..78fb7679a776877fc4190cf09cce89cb2d6a9951 100644 (file)
@@ -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)