manoj 99/11/30 21:09:19
Modified: src/include ap_ac_config.h Log: Autoconf's configure script will tell us which types select is looking for; we might as well take advantage of it. Revision Changes Path 1.2 +4 -3 apache-2.0/src/include/ap_ac_config.h Index: ap_ac_config.h =================================================================== RCS file: /home/cvs/apache-2.0/src/include/ap_ac_config.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -u -r1.1 -r1.2 --- ap_ac_config.h 1999/12/01 01:16:04 1.1 +++ ap_ac_config.h 1999/12/01 05:09:17 1.2 @@ -149,10 +149,11 @@ /* XXX - This probably doesn't handle OS/2 */ #ifdef SELECT_NEEDS_CAST #define ap_select(_a, _b, _c, _d, _e) \ - select((_a), (int *)(_b), (int *)(_c), (int *)(_d), (_e)) + select((SELECT_TYPE_ARG1)(_a), (SELECT_TYPE_ARG234)(_b), \ + (SELECT_TYPE_ARG234)(_c), (SELECT_TYPE_ARG234)(_d), \ + (SELECT_TYPE_ARG5)(_e)) #else -#define ap_select(_a, _b, _c, _d, _e) \ - select(_a, _b, _c, _d, _e) +#define ap_select(_a, _b, _c, _d, _e) select(_a, _b, _c, _d, _e) #endif /* So that we can use inline on some critical functions, and use