]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix suexec compile error under SUNOS4, where strerror() doesn't exist.
authorAndré Malo <nd@apache.org>
Sat, 22 Feb 2003 15:25:44 +0000 (15:25 +0000)
committerAndré Malo <nd@apache.org>
Sat, 22 Feb 2003 15:25:44 +0000 (15:25 +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/branches/1.3.x@98756 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/support/suexec.c

index 706783308b9594ebf954a5ed40851b56e7e9682b..6f11ce6d2f408abe6c05c3aafe365a8a730182cd 100644 (file)
@@ -1,5 +1,9 @@
 Changes with Apache 1.3.28
 
+  *) Fix suexec compile error under SUNOS4, where strerror() doesn't
+     exist. PR 5913, 9977.
+     [Jonathan W Miner <Jonathan.W.Miner@lmco.com>]
+
   *) Unix build: Add support for environment variable 
      EXTRA_LDFLAGS_SHLIB, which allows the user to add to the hard-coded 
      ld flags specified for DSOs.  Compare with the existing LDFLAGS_SHLIB 
index 07bcb5cc7ff0e479ff3a15963b1151b07d080880..39196a72089c29ae9ea4bc46617d15ec3239cb49 100644 (file)
@@ -111,6 +111,11 @@ int initgroups(const char *name, gid_t basegid)
 }
 #endif
 
+#if defined(NEED_STRERROR)
+extern char *sys_errlist[];
+#define strerror(x) sys_errlist[(x)]
+#endif
+
 #if defined(PATH_MAX)
 #define AP_MAXPATH PATH_MAX
 #elif defined(MAXPATHLEN)