summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-12-03 18:14:26 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-12-14 15:09:13 +0100
commit0b19387dae782b33bb341e58ab3c7ff804ca4f14 (patch)
treea3914adc8ac8141e4380fbe6b20efc7307067030 /include
parent3c377643339be97940554323909d51b12c933f9e (diff)
downloadlvm2-0b19387dae782b33bb341e58ab3c7ff804ca4f14.tar.gz
headers: use configure.h as 1st. header
Ensure configure.h is always 1st. included header. Maybe we could eventually introduce gcc -include option, but for now this better uses dependency tracking. Also move _REENTRANT and _GNU_SOURCE into configure.h so it doesn't need to be present in various source files. This ensures consistent compilation of headers like stdio.h since it may produce different declaration.
Diffstat (limited to 'include')
-rw-r--r--include/configure.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configure.h.in b/include/configure.h.in
index c66b37bd5..dde55fe5f 100644
--- a/include/configure.h.in
+++ b/include/configure.h.in
@@ -669,6 +669,12 @@
/* Define to 1 to include built-in support for writecache. */
#undef WRITECACHE_INTERNAL
+/* Define to get access to GNU/Linux extension */
+#undef _GNU_SOURCE
+
+/* Define to use re-entrant thread safe versions */
+#undef _REENTRANT
+
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */