From 355ac88016a53bf2aef79c84b69435ce52414a16 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 7 May 2015 02:19:45 +0300 Subject: [PATCH] Don't define strlcat prototype if the system has strlcat() The #ifdef was wrong. Hopefully this fixes the build failure on OS X Maverick that Alex Dunn reported. --- misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.h b/misc.h index a924b82..32b4e47 100644 --- a/misc.h +++ b/misc.h @@ -19,9 +19,9 @@ extern "C" { #endif char *strncpy_null(char *dst, const char *src, ssize_t len); -#ifndef HAVE_STRLCPY +#ifndef HAVE_STRLCAT size_t strlcat(char *, const char *, size_t); -#endif /* HAVE_STRLCPY */ +#endif /* HAVE_STRLCAT */ char *my_trim(char *string); char *make_string(const SQLCHAR *s, SQLINTEGER len, char *buf, size_t bufsize); SQLCHAR *make_lstring_ifneeded(ConnectionClass *, const SQLCHAR *s, ssize_t len, BOOL); -- 2.39.5