From a7d796e232a0a41377c57d435a8f639db0421ef1 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Tue, 17 Dec 2013 17:48:03 +0100 Subject: [PATCH] Only declare strl{cpy,cat} if they aren't defines. On some system (e.g. OS X Mavericks), those are defines to compiler built-ins, thus trying to declare them will fail. --- headers/build/BeOSBuildCompatibility.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/build/BeOSBuildCompatibility.h b/headers/build/BeOSBuildCompatibility.h index 875897ca07..95c00d0edf 100644 --- a/headers/build/BeOSBuildCompatibility.h +++ b/headers/build/BeOSBuildCompatibility.h @@ -44,8 +44,12 @@ extern "C" { #endif // Is kernel-only under Linux. +#ifndef strlcpy extern size_t strlcpy(char* dest, const char* source, size_t length); +#endif +#ifndef strlcat extern size_t strlcat(char* dest, const char* source, size_t length); +#endif #if defined(HAIKU_HOST_PLATFORM_FREEBSD) || defined(HAIKU_HOST_PLATFORM_DARWIN) extern size_t strnlen(const char* string, size_t length);