Fix build when libutil.h exists but is deprecated

This commit is contained in:
Keith Winstein
2012-04-07 20:23:59 -04:00
parent c354a69ee6
commit 4d9483bc83
2 changed files with 9 additions and 3 deletions
+5
View File
@@ -159,6 +159,11 @@ AC_CHECK_DECL([signalfd],
[Define if signalfd is available.])],
, [[#include <sys/signalfd.h>]])
AC_CHECK_DECL([forkpty],
[AC_DEFINE([FORKPTY_IN_LIBUTIL], [1],
[Define if libutil.h necessary for forkpty().])],
, [[#include <libutil.h>]])
AC_CHECK_DECL([htobe64],
[AC_DEFINE([HAVE_HTOBE64], [1],
[Define if htobe64 and friends exist.])],