From 81f3c2937df6230542f3223c201da8c41ff59945 Mon Sep 17 00:00:00 2001 From: Donnie Berkholz Date: Mon, 24 Apr 2006 05:39:47 +0000 Subject: [PATCH] strlcpy() doesn't exist on Linux, so use the implementation in os/. --- ChangeLog | 5 +++++ hw/xfree86/dummylib/Makefile.am | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index fdfcab717..fc309e905 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-23 Donnie Berkholz + + * hw/xfree86/dummylib/Makefile.am: + strlcpy() doesn't exist on Linux, so use the implementation in os/. + 2006-04-23 Matthieu Herrb * hw/xfree86/dummylib/xalloc.c * hw/xfree86/loader/loader.c\ diff --git a/hw/xfree86/dummylib/Makefile.am b/hw/xfree86/dummylib/Makefile.am index afe419a35..c2cb8ef78 100644 --- a/hw/xfree86/dummylib/Makefile.am +++ b/hw/xfree86/dummylib/Makefile.am @@ -8,6 +8,10 @@ INCLUDES = $(XORG_INCS) AM_CFLAGS = $(XORG_CFLAGS) @SERVER_DEFINES@ @LOADER_DEFINES@ +if NEED_STRLCAT +STRL_SRCS = $(top_srcdir)/os/strlcat.c $(top_srcdir)/os/strlcpy.c +endif + libdummy_a_SOURCES = getvalidbios.c \ pcitestmulti.c xf86allocscripi.c \ xf86addrestolist.c xf86drvmsg.c xf86drvmsgverb.c \ @@ -22,6 +26,7 @@ libdummy_nonserver_a_SOURCES = \ getvalidbios.c \ logvwrite.c \ pcitestmulti.c \ + $(STRL_SRCS) \ verrorf.c \ xalloc.c \ xf86allocscripi.c \