Include bsd/bsd.h necessary if --with-libbsd is used

This commit is contained in:
Alexandre Ratchov 2020-03-13 19:06:18 +01:00
parent 5b1c87e324
commit 7d352f5494
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#ifndef BSD_COMPAT_H
#define BSD_COMPAT_H
#ifdef USE_LIBBSD
#include <bsd/bsd.h>
#endif
#ifndef HAVE_ISSETUGID
#define issetugid _sndio_issetugid
int issetugid(void);

2
configure vendored
View File

@ -237,7 +237,7 @@ fi
#
if [ $libbsd = yes ]; then
# no arc4random as libbsd has a questionable implementation
defs="$defs -DHAVE_STRLCPY -DHAVE_STRLCAT -DHAVE_STRTONUM"
defs="$defs -DUSE_LIBBSD -DHAVE_STRLCPY -DHAVE_STRLCAT -DHAVE_STRTONUM"
ldadd="$ldadd -lbsd"
fi