httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bh...@gensym.com (Ben Hyde)
Subject [PATCH] HPUX10 yearns for SELECT_NEEDS_CAST
Date Fri, 10 Apr 1998 18:59:58 GMT

This patch resolves most of warning on what Configure calls HPUX10.  

Takes care of a dozen examples of:
  http_main.c: In function `lingering_close':
  http_main.c:1194: warning: passing arg 2 of `select' from incompatible pointer type
  http_main.c:1194: warning: passing arg 4 of `select' from incompatible pointer type

It enables SELECT_NEEDS_CAST in conf.h for that platform.

It was already enabled for HPUX, and skipped for HPUX10
This would make you think somebody had a reason to skip it.

It fixes my problem.  In dejanews a few notes discuss this
bogus behavior of select on HPUX 10.01 and HP10.02.

  - ben hyde   "The fascination of what's difficult
                Has dried the sap out of my veins, and rent
                Spontaneous joy and natural content
                Out of my heart..."     - Yates
---
> cvs diff -u include/conf.h
Index: include/conf.h
===================================================================
RCS file: /cvs/apache-1.3/src/include/conf.h,v
retrieving revision 1.200
diff -u -r1.200 conf.h
--- conf.h	1998/04/09 08:20:24	1.200
+++ conf.h	1998/04/10 18:49:33
@@ -200,8 +200,8 @@
 #define HAVE_SHMGET 1
 #define USE_SHMGET_SCOREBOARD
 #define HAVE_SYSLOG 1
-#ifndef HPUX10
 #define SELECT_NEEDS_CAST
+#ifndef HPUX10
 typedef int rlim_t;
 #endif
 

Mime
View raw message