]> granicus.if.org Git - apache/commitdiff
Fix more breakage on BeOS...
authorDavid Reid <dreid@apache.org>
Sat, 10 Feb 2001 01:16:11 +0000 (01:16 +0000)
committerDavid Reid <dreid@apache.org>
Sat, 10 Feb 2001 01:16:11 +0000 (01:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88044 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 2e9dfd9b7ef5abc1c02231837725631ec76776df..cdd2892b71468e929a3762f8c1bc807a113ad4b6 100644 (file)
@@ -1798,7 +1798,11 @@ char *ap_get_local_host(apr_pool_t *a)
         if ((!(p = gethostbyname(str))) 
             || (!(server_hostname = find_fqdn(a, p)))) {
             /* Recovery - return the default servername by IP: */
+#ifndef BEOS
             if (p->h_addr_list[0]) {
+#else
+            if (p) {
+#endif
                 apr_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]);
                server_hostname = apr_pstrdup(a, str);
                 /* We will drop through to report the IP-named server */