git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a79fdce
)
libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
author
Michael Adam
<obnox@samba.org>
Tue, 27 Jan 2009 11:37:13 +0000
(12:37 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 30 Jul 2009 07:22:10 +0000
(09:22 +0200)
under solaris
Michael
(cherry picked from commit
d09c9b459638242b9df53cc82a8849699d572486
)
source/lib/replace/libreplace.m4
patch
|
blob
|
history
diff --git
a/source/lib/replace/libreplace.m4
b/source/lib/replace/libreplace.m4
index e430a7f151815d1ba2349c976043cf28e32dd1a4..d41a86450d497bf1a2b5958302234fa27c9d8ba7 100644
(file)
--- a/
source/lib/replace/libreplace.m4
+++ b/
source/lib/replace/libreplace.m4
@@
-97,7
+97,10
@@
AC_CHECK_HEADERS(sys/syslog.h syslog.h)
AC_CHECK_HEADERS(sys/time.h time.h)
AC_CHECK_HEADERS(stdarg.h vararg.h)
AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
-AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
+AC_CHECK_HEADERS([netinet/ip.h], [], [], [#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif])
+AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)
AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
AC_CHECK_HEADERS(stropts.h)