]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Expose memset_s on FreeBSD
authorRoy Marples <roy@marples.name>
Mon, 23 Oct 2023 14:39:20 +0000 (15:39 +0100)
committerRoy Marples <roy@marples.name>
Mon, 23 Oct 2023 14:39:20 +0000 (15:39 +0100)
configure

index 9a49692a143be5523ba34e953db52f7cf43fdd3e..646ce80346c35ff64e0144ac43bad69ed5b1b07a 100755 (executable)
--- a/configure
+++ b/configure
@@ -945,6 +945,7 @@ fi
 if [ -z "$MEMSET_S" ]; then
        printf "Testing for memset_s ... "
        cat <<EOF >_memset_s.c
+#define        __STDC_WANT_LIB_EXT1__ 1
 #include <string.h>
 int main(void) {
        int a;
@@ -961,6 +962,7 @@ EOF
        rm -f _memset_s.c _memset_s
 fi
 if [ "$MEMSET_S" = yes ]; then
+       echo "#define   __STDC_WANT_LIB_EXT1__  1" >>$CONFIG_H
        echo "#define   HAVE_MEMSET_S" >>$CONFIG_H
 fi