From b7aad2b978c88f727d76640584646735ec758362 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 9 Feb 2011 15:09:03 -0500 Subject: [PATCH] Include utmp.h / utmpx.h before missing.h as apparently including it afterwards causes a compilation problem on GNU Hurd. --HG-- branch : 1.7 --- boottime.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/boottime.c b/boottime.c index 607cf74a7..bdcd1f2d2 100644 --- a/boottime.c +++ b/boottime.c @@ -42,7 +42,12 @@ #if TIME_WITH_SYS_TIME # include #endif - +#ifdef HAVE_GETUTXID +# include +#endif +#ifdef HAVE_GETUTID +# include +#endif #ifdef HAVE_SYSCTL # include #endif @@ -101,7 +106,6 @@ get_boottime(tv) #elif defined(HAVE_GETUTXID) -#include int get_boottime(tv) struct timeval *tv; @@ -120,7 +124,6 @@ get_boottime(tv) #elif defined(HAVE_GETUTID) -#include int get_boottime(tv) struct timeval *tv; -- 2.40.0