Bug 37078 - missing prototype for strdup(3)
Summary: missing prototype for strdup(3)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: 5.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-standards (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-14 23:20 UTC by des
Modified: 2002-04-15 06:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description des 2002-04-14 23:20:01 UTC
Revision 1.13 of src/include/string.h made the strdup(3) prototype conditional
on __POSIX_VISIBLE >= 200112.  However, strdup(3) was in SUSv2 long before
POSIX 2.  Programs that set _XOPEN_SOURCE to 500 should get a prototype
for strdup(3).

Fix: 

Unknown.  Revision 1.13 of src/include/string.h should be backed out until
a satisfactory fix has been found.
How-To-Repeat: 
# cd /usr/src/lib/libpam/modules/pam_passwdqc
# make

and observe the warnings.
Comment 1 Mike Barcroft freebsd_committer 2002-04-15 04:22:06 UTC
State Changed
From-To: open->feedback


Can you please confirm that revision 1.14 solves this problem.
Comment 2 des 2002-04-15 04:51:29 UTC
<mike@FreeBSD.org> writes:
> Can you please confirm that revision 1.14 solves this problem.

It does, thanks!

DES
-- 
Dag-Erling Smorgrav - des@ofug.org
Comment 3 Mike Barcroft freebsd_committer 2002-04-15 06:37:17 UTC
State Changed
From-To: feedback->closed


Problem resolved.