summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-05-08 10:39:41 +0200
committerStefan Metzmacher <metze@samba.org>2008-05-13 09:07:13 +0200
commitdd01174d092eec9bb3bb6b680786f8b9f3b4668f (patch)
treed6f7b7188baac9f47a412115525e717a5756ee65 /source4/lib/replace/system
parent6353e83dc27132a47966302a68b8e4934bce442c (diff)
downloadsamba-dd01174d092eec9bb3bb6b680786f8b9f3b4668f.tar.gz
samba-dd01174d092eec9bb3bb6b680786f8b9f3b4668f.tar.bz2
samba-dd01174d092eec9bb3bb6b680786f8b9f3b4668f.zip
libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used
metze (This used to be commit 3fddd36e119f73a5021370450f9687ef9d252bab)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index a5fb813aa1..077892a54e 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -27,6 +27,10 @@
*/
+#ifndef LIBREPLACE_NETWORK_CHECKS
+#error "AC_LIBREPLACE_NETWORK_CHECKS missing in configure"
+#endif
+
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif