[Xquartz-changes] xserver: Branch 'master'

Jeremy Huddleston jeremyhu at freedesktop.org
Fri Nov 25 14:52:11 PST 2011


 hw/xquartz/mach-startup/Makefile.am |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 65b55ee5ef050969f945f49073735e88f0bb7cbe
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date:   Fri Nov 25 09:45:25 2011 -0800

    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 at apple.com>

diff --git a/hw/xquartz/mach-startup/Makefile.am b/hw/xquartz/mach-startup/Makefile.am
index 0b1f897..21ad5b5 100644
--- a/hw/xquartz/mach-startup/Makefile.am
+++ b/hw/xquartz/mach-startup/Makefile.am
@@ -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


More information about the Xquartz-changes mailing list