From 17ae6a1c4916c8a5ef7ca8a4e2acfd7e2954e360 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 9 Feb 2011 11:31:37 -0700 Subject: [PATCH] patch from Svante Signell to fix build problem on GNU/Hurd, closes: #611290 --- debian/patches/hurd-have-getutid.diff | 35 +++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 36 insertions(+) create mode 100644 debian/patches/hurd-have-getutid.diff diff --git a/debian/patches/hurd-have-getutid.diff b/debian/patches/hurd-have-getutid.diff new file mode 100644 index 0000000..f6968dc --- /dev/null +++ b/debian/patches/hurd-have-getutid.diff @@ -0,0 +1,35 @@ +diff --git a/boottime.c b/boottime.c +index f75af3e..843aeca 100644 +--- a/boottime.c ++++ b/boottime.c +@@ -47,6 +47,14 @@ + # include + #endif + ++/* Must be included above "compat.h"!! */ ++#if defined(HAVE_GETUTXID) ++#include ++#elif defined(HAVE_GETUTID) ++#include ++#else ++#endif ++ + #include "compat.h" + #include "missing.h" + +@@ -102,7 +110,6 @@ get_boottime(tv) + + #elif defined(HAVE_GETUTXID) + +-#include + int + get_boottime(tv) + struct timeval *tv; +@@ -121,7 +128,6 @@ get_boottime(tv) + + #elif defined(HAVE_GETUTID) + +-#include + int + get_boottime(tv) + struct timeval *tv; diff --git a/debian/patches/series b/debian/patches/series index 178a4c4..ba3c21b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ typo-in-classic-insults.diff env.c-safety.diff paths-in-samples.diff +hurd-have-getutid.diff -- 2.47.2