* configure.in: include <sys/types.h> when doing checks which require <utmp.h>
authorNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 9 Nov 1999 21:20:44 +0000 (21:20 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 9 Nov 1999 21:20:44 +0000 (21:20 +0000)
  (should fix Bug #10 on FreeBSD)

citadel/ChangeLog
citadel/configure.in

index a2cbe4477ef6afc2814d31611d2cb1f20f8825ee..c65cfc73ec525e58c0e30e3bf955ef64fc76a5a7 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 1.413  1999/11/09 21:20:44  nbryant
+* configure.in: include <sys/types.h> when doing checks which require <utmp.h>
+  (should fix Bug #10 on FreeBSD)
+
 Revision 1.412  1999/11/05 03:53:47  ajc
 * Issue 'cancel' messages for vCard when a user is deleted.
 * Try to delete 'cancel' messages locally after they've been distributed.
@@ -1426,4 +1430,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Initial CVS import 
-
index ea76c1973c9a2c3ab9d1975a4d86ec8a1a08a2e9..921213a8eeeabf59ebf2ad7bb474957b92e691a7 100644 (file)
@@ -192,14 +192,16 @@ AC_HEADER_TIME
 AC_STRUCT_TM
 
 AC_CACHE_CHECK([for ut_type in struct utmp], ac_cv_struct_ut_type,
-[AC_TRY_COMPILE([#include <utmp.h>], [struct utmp ut; ut.ut_type;],
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <utmp.h>], [struct utmp ut; ut.ut_type;],
 ac_cv_struct_ut_type=yes, ac_cv_struct_ut_type=no)])
 if test $ac_cv_struct_ut_type = yes; then
        AC_DEFINE(HAVE_UT_TYPE)
 fi
 
 AC_CACHE_CHECK([for ut_host in struct utmp], ac_cv_struct_ut_host,
-[AC_TRY_COMPILE([#include <utmp.h>], [struct utmp ut; ut.ut_host;],
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <utmp.h>], [struct utmp ut; ut.ut_host;],
 ac_cv_struct_ut_host=yes, ac_cv_struct_ut_host=no)])
 if test $ac_cv_struct_ut_host = yes; then
        AC_DEFINE(HAVE_UT_HOST)