1
0
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:
Werner Koch 2014-12-01 15:55:28 +01:00
parent f1c3eb4b16
commit 0367a4b8cf
2 changed files with 4 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ fi
AC_MSG_NOTICE([checking for header files])
AC_HEADER_STDC
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

View File

@ -34,6 +34,9 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include <time.h>
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
#define PGM "watchgnupg"