httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apache-1.3/src/os/netware libprews.c libpre.c
Date Mon, 13 Aug 2001 22:12:56 GMT
bnicholes    01/08/13 15:12:56

  Modified:    src/os/netware libprews.c libpre.c
  Log:
  Initialization code required by the GNU compiler when building for NetWare
  
  Revision  Changes    Path
  1.2       +8 -0      apache-1.3/src/os/netware/libprews.c
  
  Index: libprews.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/netware/libprews.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- libprews.c	2000/06/01 23:42:31	1.1
  +++ libprews.c	2001/08/13 22:12:56	1.2
  @@ -11,10 +11,18 @@
   #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);
   }
   
  
  
  
  1.2       +8 -0      apache-1.3/src/os/netware/libpre.c
  
  Index: libpre.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/netware/libpre.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- libpre.c	2000/06/01 23:42:31	1.1
  +++ libpre.c	2001/08/13 22:12:56	1.2
  @@ -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;
   }
   
  
  
  

Mime
View raw message