summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--tirpc/netconfig.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e6d3df5..80dec85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ AC_CONFIG_HEADERS([config.h])
AC_PROG_LIBTOOL
AC_HEADER_DIRENT
AC_PREFIX_DEFAULT(/usr)
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h])
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([nsl], [yp_get_default_domain])
AC_CHECK_FUNCS([getrpcbyname getrpcbynumber])
diff --git a/tirpc/netconfig.h b/tirpc/netconfig.h
index c25788c..3f1a685 100644
--- a/tirpc/netconfig.h
+++ b/tirpc/netconfig.h
@@ -1,7 +1,9 @@
#ifndef _NETCONFIG_H_
#define _NETCONFIG_H_
+#ifdef HAVE_FEATURES_H
#include <features.h>
+#endif
#define NETCONFIG "/etc/netconfig"
#define NETPATH "NETPATH"