From 7da837b42aaf9fc67e16021d9659e133773adf41 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 23 Jan 2019 18:38:20 -0800 Subject: [PATCH] GUACAMOLE-637: The __BSD_VISIBLE macro is required for strlcpy() and strlcat() to be available in libc's string.h. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 19396204..7ea60298 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,7 @@ AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h time.h sys/time.h syslo # Source characteristics AC_DEFINE([_XOPEN_SOURCE], [700], [Uses X/Open and POSIX APIs]) +AC_DEFINE([__BSD_VISIBLE], [1], [Uses BSD-specific APIs (if available)]) # Check for whether math library is required AC_CHECK_LIB([m], [cos],