1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4:heimdal_build: try to fix the build on systems without ifaddrs.h

metze
This commit is contained in:
Stefan Metzmacher
2009-07-16 12:08:56 +02:00
parent 39684d2cbe
commit 98aba452fb
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
#include "system/network.h"

View File

@ -46,6 +46,15 @@ dnl declarations will be correct). Phew!
AC_CHECK_HEADERS([err.h], [],
[ cp heimdal/lib/roken/err.hin heimdal_build/err.h ])
dnl Not all systems have ifaddrs.h, so we provide a replacement. Heimdal
dnl unconditionally #includes <ifaddrs.h>, so we need to create an ifaddrs.h,
dnl but we can't just have a static one because we don't want to use
dnl it on systems that have a real ifaddrs.h. If the system has a real
dnl ifaddrs.h. We don't use heimdal's lib/roken/ifaddrs.hin because
dnl our libreplace would conflict with it.
AC_CHECK_HEADERS([ifaddrs.h], [],
[ cp heimdal_build/ifaddrs.hin heimdal_build/ifaddrs.h ])
AC_CHECK_HEADERS([ \
crypt.h \
curses.h \