blob: 337fe55ceb6a47ea60b065e0a9f3eab394d1a54b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
|