Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 11185 invoked by uid 6000); 19 May 1998 03:00:12 -0000 Received: (qmail 11115 invoked by uid 2001); 19 May 1998 03:00:01 -0000 Received: (qmail 8472 invoked by uid 2012); 19 May 1998 02:55:19 -0000 Message-Id: <19980519025519.8471.qmail@hyperreal.org> Date: 19 May 1998 02:55:19 -0000 From: Paul Sanchez Reply-To: pjs@alum.mit.edu To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: os-next/2248: compile fails for src/support/logresolve.c due to missing strdup Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 2248 >Category: os-next >Synopsis: compile fails for src/support/logresolve.c due to missing strdup >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon May 18 20:00:01 PDT 1998 >Last-Modified: >Originator: pjs@alum.mit.edu >Organization: apache >Release: 1.3b6 >Environment: NextStep 3.3, OpenStep 4.2, system compiler >Description: I noted in the bug database the comment that apache supplies its own strdup, but this is incorrect for logresolve.c. The context-diff patch supplied below fixes this for NeXT, and I expect for other systems missing strdup as well. >How-To-Repeat: >Fix: *** logresolve.c Mon May 18 21:30:14 1998 --- logresolve.c Mon May 18 21:30:14 1998 *************** *** 50,55 **** --- 50,57 ---- #include + #include "conf.h" + #include #ifndef MPE #include *************** *** 71,77 **** /* number of buckets in cache hash table */ #define BUCKETS 256 ! #ifdef MPE char *strdup (const char *str) { char *dup; --- 73,79 ---- /* number of buckets in cache hash table */ #define BUCKETS 256 ! #ifdef NEED_STRDUP char *strdup (const char *str) { char *dup; >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]