This is a libc issue, not a gcc issue (strdup is part of libc, not the C compiler). Also, the correct way to fix this is using the feature test macros.
On the two systems I have available (glibc 2.15, and glibc 2.20, which is the latest stable glibc release) the man page says:
This is a libc issue, not a gcc issue (strdup is part of libc, not the C compiler). Also, the correct way to fix this is using the feature test macros.
On the two systems I have available (glibc 2.15, and glibc 2.20, which is the latest stable glibc release) the man page says:
and the
src/Makefile.am
does set_XOPEN_SOURCE=700
.Can you take a look at your libc and see what feature test macros it wants?