Skip to content

Commit

Permalink
Expose memset_s on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmarples committed Oct 23, 2023
1 parent 47f4bf4 commit e8b6541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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

Expand Down

0 comments on commit e8b6541

Please sign in to comment.