You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rs...@locus.apache.org on 2000/10/07 18:08:09 UTC

cvs commit: apache-1.3/src/include ap_config.h

rse         00/10/07 09:08:09

  Modified:    src/include ap_config.h
  Log:
  FreeBSD uses socklen_t since version 4.0, so define NET_SIZE_T
  explicitly there. This gets rid of the following warnings:
  http_main.c: In function `child_main':
  http_main.c:3988: warning: pointer targets in passing arg 3 of `accept' differ in signedness
  http_main.c:4138: warning: pointer targets in passing arg 3 of `getsockname' differ in signedness
  http_main.c: In function `main':
  http_main.c:5091: warning: pointer targets in passing arg 3 of `getpeername' differ in signedness
  http_main.c:5098: warning: pointer targets in passing arg 3 of `getsockname' differ in signedness
  
  Revision  Changes    Path
  1.294     +3 -0      apache-1.3/src/include/ap_config.h
  
  Index: ap_config.h
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/include/ap_config.h,v
  retrieving revision 1.293
  retrieving revision 1.294
  diff -u -r1.293 -r1.294
  --- ap_config.h	2000/09/28 13:32:35	1.293
  +++ ap_config.h	2000/10/07 16:08:09	1.294
  @@ -750,6 +750,9 @@
   #define SINGLE_LISTEN_UNSERIALIZED_ACCEPT
   #define HAVE_SYSLOG 1
   #define SYS_SIGLIST sys_siglist
  +#if (defined(__FreeBSD_version) && (__FreeBSD_version >= 400000))
  +#define NET_SIZE_T socklen_t
  +#endif
   
   #elif defined(QNX)
   #ifndef crypt