lib/util: musl needs _{GNU,BSD}_SOURCE for strlc{at,py}().

This commit is contained in:
Juan RP 2019-04-22 15:31:07 +02:00
parent 0db5ace61d
commit cf78b7272f

View File

@ -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 <stdio.h>
#include <stdbool.h>
#include <stdlib.h>