Set _BSD_SOURCE before including string.h to get strlc{at,py} with musl.
This commit is contained in:
parent
a517124eae
commit
42274f939c
@ -36,7 +36,9 @@
|
||||
#include <sys/time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define _BSD_SOURCE /* musl has strlcpy if _{BSD,GNU}_SOURCE is defined */
|
||||
#include <string.h>
|
||||
#undef _BSD_SOURCE
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
|
2
lib/external/dewey.c
vendored
2
lib/external/dewey.c
vendored
@ -30,7 +30,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define _BSD_SOURCE
|
||||
#include <string.h>
|
||||
#undef _BSD_SOURCE
|
||||
#include <strings.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user