summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@80386.nl>2011-06-25 10:35:25 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-06-26 09:30:31 -0700
commit578b76086edb834aa447ce9aed60c585e44e6cc1 (patch)
tree8ff34b3ccd906923a0c8f7c38e73e1b1f4849d74
parentdd5d4c9721417a21133bb44a0567a041a166bd5e (diff)
Don't forget to include <sys/types.h> before <utmp.h>.
Some operating systems (e.g. FreeBSD) require <sys/types.h> to be included before <utmp.h>, because they depend on type definitions such as int32_t, time_t, etc. Signed-off-by: Ed Schouten <ed@80386.nl> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index be90cf3..6d616ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,7 +48,10 @@ AC_CHECK_MEMBERS([
struct utmp.ut_host,
struct utmp.ut_id,
struct utmp.ut_pid,
- struct utmp.ut_type], [], [], [#include <utmp.h>])
+ struct utmp.ut_type], [], [], [
+ #include <sys/types.h>
+ #include <utmp.h>
+ ])
AC_CHECK_MEMBERS([struct utmpx.ut_syslen], [], [], [#include <utmpx.h>])
# Checks for library functions.