summaryrefslogtreecommitdiffstats
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-02 10:40:06 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-03 05:26:11 +0100
commit1e42aa6b3a2912426caebaf89596fa7c9f19ba2e (patch)
tree187d43056c44bf9a773980e085aeb824b23aa7ec /lib/replace/replace.h
parent5f18925e695d0c271aea456a4ee63aeb1e8bbf96 (diff)
downloadsamba-1e42aa6b3a2912426caebaf89596fa7c9f19ba2e.tar.gz
samba-1e42aa6b3a2912426caebaf89596fa7c9f19ba2e.tar.xz
samba-1e42aa6b3a2912426caebaf89596fa7c9f19ba2e.zip
replace: Try to fix broken sys/capabilites.h on Linux.
As this is more or less a broken header we need to include linux/types.h before sys/capabilities.h to avoid redefinitions. Systems like ClearOS 5.2 need linux/types.h very early. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Feb 3 05:26:12 CET 2011 on sn-devel-104
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index f738658ffe..60aa3d4e2c 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -121,6 +121,13 @@
#include <stddef.h>
#endif
+#ifdef HAVE_LINUX_TYPES_H
+/*
+ * This is needed as some broken header files require this to be included early
+ */
+#include <linux/types.h>
+#endif
+
#ifndef HAVE_STRERROR
extern char *sys_errlist[];
#define strerror(i) sys_errlist[i]