lib/util: musl needs _{GNU,BSD}_SOURCE for strlc{at,py}().
This commit is contained in:
1 parent
0db5ace61d
commit
cf78b7272f
1 file changed
+6
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user