XQuartz: Provide in-tree implementation of strndup(3) if needed
This function was added to Mac OS X 10.7, so we need to provide it for earlier releases. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
c065f7b163
commit
511beddffa
|
@ -12,6 +12,13 @@ x11app_PROGRAMS = X11.bin
|
|||
dist_X11_bin_SOURCES = \
|
||||
bundle-main.c
|
||||
|
||||
# strndup(3) was added in Mac OS X 10.7, but we do this unconditionally to deal
|
||||
# with the case where we build on Lion but target Snow Leopard as the minimum
|
||||
# OS version.
|
||||
#if NEED_STRNDUP
|
||||
dist_X11_bin_SOURCES += $(top_srcdir)/os/strndup.c
|
||||
#endif
|
||||
|
||||
nodist_X11_bin_SOURCES = \
|
||||
mach_startupServer.c \
|
||||
mach_startupUser.c
|
||||
|
|
Loading…
Reference in New Issue