diff --git a/lib/util.c b/lib/util.c index 2864b77a..b0acbc91 100644 --- a/lib/util.c +++ b/lib/util.c @@ -27,6 +27,12 @@ # define _GNU_SOURCE /* for vasprintf(3) */ #endif +#if defined(HAVE_STRLCAT) || defined(HAVE_STRLCPY) +# define _BSD_SOURCE +#endif + +#include "compat.h" + #include #include #include