]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Initialization code required by the GNU compiler when building for NetWare
authorBradley Nicholes <bnicholes@apache.org>
Mon, 13 Aug 2001 22:12:56 +0000 (22:12 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Mon, 13 Aug 2001 22:12:56 +0000 (22:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90144 13f79535-47bb-0310-9956-ffa450edef68

src/os/netware/libpre.c
src/os/netware/libprews.c

index 1e48e520db2c6e9a1d2a896415e3a385603f99cf..67ce6c13d069dcfa089e6b3cc7647b73d2654a33 100644 (file)
@@ -9,8 +9,16 @@
   provide.
 ------------------------------------------------------------------*/
 
+#ifdef __GNUC__
+#include <string.h>        /* memset */
+extern char _edata, _end ; /* end of DATA (start of BSS), end of BSS */
+#endif
+
 int _lib_start()
 {
+#ifdef __GNUC__
+    memset (&_edata, 0, &_end - &_edata);
+#endif
     return 0;
 }
 
index 100e2f30818340f8ec8a296545041cb5dcda8735..65cd5381f41306729fc1672b8dd528ac848e7ba8 100644 (file)
 #include "stddef.h"
 #include "ws2nlm.h"
 
+#ifdef __GNUC__
+#include <string.h>        /* memset */
+extern char _edata, _end ; /* end of DATA (start of BSS), end of BSS */
+#endif
+
 int _lib_start_ws()
 {
     WSADATA wsaData;
     
+#ifdef __GNUC__
+    memset (&_edata, 0, &_end - &_edata);
+#endif
     return WSAStartup((WORD) MAKEWORD(2, 0), &wsaData);
 }