Isn't strdup.h useless code? - Mailing list pgsql-hackers

From Tom Lane
Subject Isn't strdup.h useless code?
Date
Msg-id 919.1159309629@sss.pgh.pa.us
Whole thread Raw
List pgsql-hackers
While looking around to see where to insert strlcpy(), I couldn't help
noticing that port/strdup.c has its very own header file,
include/strdup.h.  AFAICS this is utterly redundant given that we have

#ifndef HAVE_STRDUP
extern char *strdup(char const *);
#endif

in port.h.  Can anyone see a reason not to remove the extra header?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: -HEAD planner issue wrt hash_joins on dbt3 ?
Next
From: Josh Berkus
Date:
Subject: Re: horo(r)logy test fail on solaris (again and solved)