Commit 61459b57 authored by dgaudet's avatar dgaudet
Browse files

PR#695: fix problem compiling http_bprintf.c with gcc under SCO

Submitted by:        Marc Slemko
Reviewed by: Dean Gaudet, Randy Terbush


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78503 13f79535-47bb-0310-9956-ffa450edef68
parent dd4905f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -96,6 +96,9 @@ Changes with Apache 1.2.1
  *) PORT: Workaround for AIX 3.x compiler bug in http_bprintf.c.  
     [Marc Slemko] PR#725
  
  *) PORT: fix problem compiling http_bprintf.c with gcc under SCO
     [Marc Slemko] PR#695

Changes with Apache 1.2

Changes with Apache 1.2b11
+3 −1
Original line number Diff line number Diff line
@@ -375,7 +375,9 @@ case "$PLAT" in
	OS='SCO 5'
	CFLAGS="$CFLAGS -DSCO5"
	LIBS="$LIBS -lsocket -lmalloc -lprot"
	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
	    OSBPRINTF="-K noinline"
	fi
	DEF_WANTHSREGEX=no
	;;
    *-solaris2*)
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@
#define REMOTE_HOST (0)
#define REMOTE_NAME (1)
#define REMOTE_NOLOOKUP (2)
#define REMOTE_FORCE_HOST (3)

#define SATISFY_ALL 0
#define SATISFY_ANY 1
+4 −2
Original line number Diff line number Diff line
@@ -338,7 +338,9 @@ get_remote_host(conn_rec *conn, void *dir_config, int type)
    if (dir_config) 
	dir_conf = (core_dir_config *)get_module_config(dir_config, &core_module);

   if ((!dir_conf) || (type != REMOTE_NOLOOKUP && conn->remote_host == NULL && dir_conf->hostname_lookups))
   if ((!dir_conf) || (type == REMOTE_FORCE_HOST && conn->remote_host == NULL)
	|| (type != REMOTE_NOLOOKUP
	    && conn->remote_host == NULL && dir_conf->hostname_lookups))
    {
#ifdef STATUS
	int old_stat = update_child_status(conn->child_num,
@@ -383,7 +385,7 @@ get_remote_host(conn_rec *conn, void *dir_config, int type)
	return conn->remote_host;
    else
    {
	if (type == REMOTE_HOST) return NULL;
	if (type == REMOTE_HOST || type == REMOTE_FORCE_HOST) return NULL;
	else return conn->remote_ip;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ int find_allowdeny (request_rec *r, array_header *a, int method)

	if (!gothost) {
	    remotehost = get_remote_host(r->connection, r->per_dir_config,
	                                 REMOTE_HOST);
	                                 REMOTE_FORCE_HOST);

	    if ((remotehost == NULL) || is_ip(remotehost))
	        gothost = 1;