From 3b17daaee13db6e8d91bd0ade1c9dc4f0754b681 Mon Sep 17 00:00:00 2001 From: Bobby Powers Date: Thu, 30 Jan 2014 13:09:56 -0800 Subject: [PATCH] util: undef strl{cat,cpy} in their .c files This is what util.h does, as well - it allows compilation when strl{cat,cpy} are defined as macros (like on MacOS 10.9). Signed-off-by: Bobby Powers --- util/strlcat.c | 1 + util/strlcpy.c | 1 + 2 files changed, 2 insertions(+) diff --git a/util/strlcat.c b/util/strlcat.c index a50c612..037464d 100644 --- a/util/strlcat.c +++ b/util/strlcat.c @@ -1,6 +1,7 @@ /* Taken from OpenBSD */ #include #include +#undef strlcat /* * Appends src to string dst of size siz (unlike strncat, siz is the diff --git a/util/strlcpy.c b/util/strlcpy.c index 3779c78..304b9cc 100644 --- a/util/strlcpy.c +++ b/util/strlcpy.c @@ -1,6 +1,7 @@ /* Taken from OpenBSD */ #include #include +#undef strlcpy /* * Copy src to string dst of size siz. At most siz-1 characters -- 1.8.3.4 (Apple Git-47)