diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-05-08 10:39:41 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-05-16 08:51:53 +0200 |
commit | 107ed5fe0c51abeb4def8f8e2cc041b3f16061ad (patch) | |
tree | 7c15f7d2e066f8122e73b5242f8b60bb7d6f8c1d /source3/lib | |
parent | 9eefcfd42fa6a77551d64565e943f211cd8bf7a3 (diff) | |
download | samba-107ed5fe0c51abeb4def8f8e2cc041b3f16061ad.tar.gz samba-107ed5fe0c51abeb4def8f8e2cc041b3f16061ad.tar.bz2 samba-107ed5fe0c51abeb4def8f8e2cc041b3f16061ad.zip |
libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used
metze
(cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab)
(This used to be commit cd37fdb2401bfd6c23160e34f03238faa1f5cbd3)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/replace/libreplace_network.m4 | 1 | ||||
-rw-r--r-- | source3/lib/replace/system/network.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/replace/libreplace_network.m4 b/source3/lib/replace/libreplace_network.m4 index f1657d9f79..56c603a155 100644 --- a/source3/lib/replace/libreplace_network.m4 +++ b/source3/lib/replace/libreplace_network.m4 @@ -2,6 +2,7 @@ AC_DEFUN_ONCE(AC_LIBREPLACE_NETWORK_CHECKS, [ echo "LIBREPLACE_NETWORK_CHECKS: START" +AC_DEFINE(LIBREPLACE_NETWORK_CHECKS, 1, [LIBREPLACE_NETWORK_CHECKS were used]) LIBREPLACE_NETWORK_OBJS="" LIBREPLACE_NETWORK_LIBS="" diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h index a5fb813aa1..077892a54e 100644 --- a/source3/lib/replace/system/network.h +++ b/source3/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 |