+2006-04-12 NeilBrown <neilb@suse.de>
+ utils/statd/rmtcall.c: use HAVE_IFADDRS_H to control compilation
+ of code using ifaddrs.h
+ configure.in: test for present of ifaddrs.h
+
+ Old glibc's don't have ifaddrs.h
+
2006-04-12 NeilBrown <neilb@suse.de>
Set version to 1.0.8,
aclocal -I aclocal ; autoheader ; automake ; autoconf
malloc.h memory.h netdb.h netinet/in.h paths.h \
stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
sys/param.h sys/socket.h sys/time.h sys/vfs.h \
- syslog.h unistd.h com_err.h et/com_err.h])
+ syslog.h unistd.h com_err.h et/com_err.h \
+ ifaddrs.h])
dnl *************************************************************
dnl Checks for typedefs, structures, and compiler characteristics
#include <netdb.h>
#include <string.h>
#include <unistd.h>
+#ifdef HAVE_IFADDRS_H
#include <ifaddrs.h>
+#endif /* HAVE_IFADDRS_H */
#include "sm_inter.h"
#include "statd.h"
#include "notlist.h"
out_success:
return sockfd;
}
+
+#ifdef HAVE_IFADDRS_H
/*
* Using the NL_ADDR(lp), reset (if needed) the hostname
* that will be put in the SM_NOTIFY to the hostname
}
return;
}
+#endif /* HAVE_IFADDRS_H */
/*
* Try to resolve host name for notify/callback request
*
* set the NL_MY_NAME(lp) hostname to the
* one associated with the network interface
*/
+#ifdef HAVE_IFADDRS_H
if (!(run_mode & STATIC_HOSTNAME))
reset_my_name(lp);
-
+#endif /* HAVE_IFADDRS_H */
func = (xdrproc_t) xdr_stat_chge;
new_stat.state = MY_STATE;
new_stat.mon_name = NL_MY_NAME(lp);