Closed GoogleCodeExporter closed 9 years ago
Original comment by dominiqu...@gmail.com
on 18 Apr 2011 at 7:54
YOu could get a glimse at gnulib
Original comment by roucarie...@gmail.com
on 1 May 2011 at 11:53
So on OS X they decided that strdup() is no longer declared by string.h, or is
the include missing ? Or OS X 10.7 require different link argument ?
Original comment by nicolas.dufresne@gmail.com
on 2 May 2011 at 6:02
I tried to compile lib proxy with jhbuild on MacOSX 10.7.2 and stumbled over
the same issue as mentioned here. string.h still defines the strdup function
but the function definition is not included as the _POSIX_C_SOURCE=1 is set. To
get it compiling I removed the following line in the libproxy/CMakeLists.txt
file:
add_definitions(-D_POSIX_C_SOURCE=1)
Original comment by moser.ro...@gmail.com
on 19 Oct 2011 at 6:52
Proper patch thanks to the guys from gtk-osx:
http://git.gnome.org/browse/gtk-osx/plain/patches/libproxy-Bug-052-POSIX_C_SOURC
E.patch
See also ticket at gtk-osx:
https://sourceforge.net/apps/trac/gtk-osx/ticket/58
Original comment by moser.ro...@gmail.com
on 21 Oct 2011 at 5:16
To answer the question in comment 3, the new (in 10.7 Lion) string.h includes
symbols based on the definition of DARWIN_C_LEVEL, which is set from
POSIX_C_SOURCE, where earlier versions simply checked for POSIX_C_SOURCE to be
defined.
Values of POSIX_C_SOURCE that it uses in string.h are 199506L, 200112L,
200809L. strdup() is defined at the middle level.
See also Bug 45, which was about a similar problem with POSIX_C_SOURCE.
Original comment by jra...@ceridwen.us
on 29 Oct 2011 at 11:31
This issue was closed by revision r824.
Original comment by dominiqu...@gmail.com
on 2 Nov 2011 at 10:56
This issue was closed by revision r826.
Original comment by dominiqu...@gmail.com
on 2 Nov 2011 at 10:58
Issue 180 has been merged into this issue.
Original comment by dominiqu...@gmail.com
on 30 Jun 2012 at 5:27
Original issue reported on code.google.com by
mschamsc...@gmail.com
on 10 Apr 2011 at 9:51