randy 96/12/26 09:36:24
Modified: src util_script.c
Log:
Attempt to make this more portable. Use _POSIX_ARG_MAX and include limits.h.
Revision Changes Path
1.33 +2 -2 apache/src/util_script.c
Index: util_script.c
===================================================================
RCS file: /export/home/cvs/apache/src/util_script.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C3 -r1.32 -r1.33
*** util_script.c 1996/12/24 19:27:19 1.32
--- util_script.c 1996/12/26 17:36:23 1.33
***************
*** 60,66 ****
#include "http_core.h" /* For document_root. Sigh... */
#include "http_request.h" /* for sub_req_lookup_uri() */
#include "util_script.h"
!
/*
* Various utility functions which are common to a whole lot of
--- 60,66 ----
#include "http_core.h" /* For document_root. Sigh... */
#include "http_request.h" /* for sub_req_lookup_uri() */
#include "util_script.h"
! #include <limits.h>
/*
* Various utility functions which are common to a whole lot of
***************
*** 79,85 ****
char *t, *arg;
va_list args;
! if ((av = (char **)palloc(r->pool, ARG_MAX)) == NULL)
log_unixerr("malloc", NULL, "failed to allocate memory for arg list",
r->server);
av[0] = av0;
--- 79,85 ----
char *t, *arg;
va_list args;
! if ((av = (char **)palloc(r->pool, _POSIX_ARG_MAX)) == NULL)
log_unixerr("malloc", NULL, "failed to allocate memory for arg list",
r->server);
av[0] = av0;