>From aeb6a119ddf186a5821737a2284b2ed7ed522149 Mon Sep 17 00:00:00 2001
From: Yury Usishchev
Date: Wed, 17 Feb 2016 13:30:59 +0300
Subject: [PATCH 1/2] Cleanup config.h usage
Add config.h include to every source file before all other includes.
---
libattr/attr_copy_action.c | 2 ++
libattr/attr_copy_check.c | 2 ++
libattr/libattr.c | 2 ++
libattr/syscalls.c | 2 ++
libmisc/high_water_alloc.c | 2 ++
libmisc/next_line.c | 2 ++
libmisc/quote.c | 2 ++
libmisc/unquote.c | 2 ++
libmisc/walk_tree.c | 2 ++
tools/getfattr.c | 3 ++-
tools/setfattr.c | 3 ++-
11 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/libattr/attr_copy_action.c b/libattr/attr_copy_action.c
index c5e4a5a..57a6f65 100644
--- a/libattr/attr_copy_action.c
+++ b/libattr/attr_copy_action.c
@@ -15,6 +15,8 @@
along with this manual. If not, see .
*/
+#include "config.h"
+
#if defined(linux)
#include
#endif
diff --git a/libattr/attr_copy_check.c b/libattr/attr_copy_check.c
index ca0ac72..3f9280b 100644
--- a/libattr/attr_copy_check.c
+++ b/libattr/attr_copy_check.c
@@ -17,6 +17,8 @@
/* Copy extended attributes between files - default check callback */
+#include "config.h"
+
#include
#include "error_context.h"
#include "attr/libattr.h"
diff --git a/libattr/libattr.c b/libattr/libattr.c
index 0e8fffe..d6668af 100644
--- a/libattr/libattr.c
+++ b/libattr/libattr.c
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
diff --git a/libattr/syscalls.c b/libattr/syscalls.c
index 5e7db67..352841b 100644
--- a/libattr/syscalls.c
+++ b/libattr/syscalls.c
@@ -20,6 +20,8 @@
* Actual syscall wrappers are long gone to libc.
*/
+#include "config.h"
+
#include
int libattr_setxattr(const char *path, const char *name,
diff --git a/libmisc/high_water_alloc.c b/libmisc/high_water_alloc.c
index c127dc1..67852cb 100644
--- a/libmisc/high_water_alloc.c
+++ b/libmisc/high_water_alloc.c
@@ -17,6 +17,8 @@
License along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include "misc.h"
diff --git a/libmisc/next_line.c b/libmisc/next_line.c
index a5bb099..81ca7a4 100644
--- a/libmisc/next_line.c
+++ b/libmisc/next_line.c
@@ -15,6 +15,8 @@
along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
diff --git a/libmisc/quote.c b/libmisc/quote.c
index bf8f9eb..2bb604b 100644
--- a/libmisc/quote.c
+++ b/libmisc/quote.c
@@ -17,6 +17,8 @@
License along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
diff --git a/libmisc/unquote.c b/libmisc/unquote.c
index bffebf9..efee328 100644
--- a/libmisc/unquote.c
+++ b/libmisc/unquote.c
@@ -17,6 +17,8 @@
License along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
diff --git a/libmisc/walk_tree.c b/libmisc/walk_tree.c
index 0a6af1e..00cea7b 100644
--- a/libmisc/walk_tree.c
+++ b/libmisc/walk_tree.c
@@ -17,6 +17,8 @@
License along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
diff --git a/tools/getfattr.c b/tools/getfattr.c
index cc55d5f..72a8852 100644
--- a/tools/getfattr.c
+++ b/tools/getfattr.c
@@ -19,6 +19,8 @@
along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
@@ -30,7 +32,6 @@
#include
#include
-#include "config.h"
#include "walk_tree.h"
#include "misc.h"
diff --git a/tools/setfattr.c b/tools/setfattr.c
index 9556c6c..6f79d8f 100644
--- a/tools/setfattr.c
+++ b/tools/setfattr.c
@@ -19,6 +19,8 @@
along with this program. If not, see .
*/
+#include "config.h"
+
#include
#include
#include
@@ -30,7 +32,6 @@
#include
#include
-#include "config.h"
#include "misc.h"
#define CMD_LINE_OPTIONS "n:x:v:h"
--
2.7.2