mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tools: Improve watchgnupg portability.
* configure.ac (AC_CHECK_HEADERS): Check for sys.select.h * tools/watchgnupg.c: Include it. -- It seems http://www.musl-libc.org/ is quite limited and requires the use sys/select.h instead of unistd.h et al.
This commit is contained in:
parent
f1c3eb4b16
commit
0367a4b8cf
@ -1190,7 +1190,7 @@ fi
|
|||||||
AC_MSG_NOTICE([checking for header files])
|
AC_MSG_NOTICE([checking for header files])
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS([string.h unistd.h langinfo.h termio.h locale.h getopt.h \
|
AC_CHECK_HEADERS([string.h unistd.h langinfo.h termio.h locale.h getopt.h \
|
||||||
pty.h utmp.h pwd.h inttypes.h signal.h])
|
pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h])
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,6 +34,9 @@
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#ifdef HAVE_SYS_SELECT_H
|
||||||
|
# include <sys/select.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PGM "watchgnupg"
|
#define PGM "watchgnupg"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user