summaryrefslogtreecommitdiff
path: root/source4/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include/includes.h')
-rw-r--r--source4/include/includes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index dc7db5d3bb..5850103145 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -23,8 +23,15 @@
#ifndef NO_CONFIG_H /* for some tests */
#include "lib/replace/replace.h"
+
+/* make sure we have included the correct config.h */
+#ifndef CONFIG_H_IS_FROM_SAMBA
+#warn "make sure you have removed all config.h files from standalone builds!"
+#error "the included config.h isn't from samba!"
#endif
+#endif /* NO_CONFIG_H */
+
#include "local.h"
#ifdef __GNUC__