aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hal-0.5.11-patches/0004-include-config.h-before-any-other-headers.patch')
-rw-r--r--hal-0.5.11-patches/0004-include-config.h-before-any-other-headers.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/hal-0.5.11-patches/0004-include-config.h-before-any-other-headers.patch b/hal-0.5.11-patches/0004-include-config.h-before-any-other-headers.patch
new file mode 100644
index 00000000..337fe55c
--- /dev/null
+++ b/hal-0.5.11-patches/0004-include-config.h-before-any-other-headers.patch
@@ -0,0 +1,41 @@
+From b3dc9dac9328f05988a4c8ada886932e59d72e06 Mon Sep 17 00:00:00 2001
+From: Makoto Dei <makoto@turbolinux.co.jp>
+Date: Tue, 17 Jun 2008 19:41:07 +0200
+Subject: [PATCH 04/48] include config.h before any other headers
+
+Include config.h before any other headers in partutil.c otherwise,
+for example, _FILE_OFFSET_BITS defined in config.h does not affect
+these headers.
+---
+ partutil/partutil.c | 8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/partutil/partutil.c b/partutil/partutil.c
+index 9c2930f..42280af 100644
+--- a/partutil/partutil.c
++++ b/partutil/partutil.c
+@@ -21,6 +21,10 @@
+ *
+ **************************************************************************/
+
++#ifdef HAVE_CONFIG_H
++# include <config.h>
++#endif
++
+ #include <string.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+@@ -39,10 +43,6 @@
+ #include "partutil.h"
+
+
+-#ifdef HAVE_CONFIG_H
+-# include <config.h>
+-#endif
+-
+
+ #ifdef USE_PARTED
+ #include <parted/parted.h>
+--
+1.6.1.2
+