#462 add test for include file mntent.h
Closed: Fixed None Opened 7 years ago by cgrzemba.

for presence of mntent.h should be tested:

patch for configure.ac:
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ AC_PROG_LIBTOOL
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h mntent.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STAT

patch for daemon.c:
--- a/ldap/servers/slapd/daemon.c
+++ b/ldap/servers/slapd/daemon.c
@@ -59,7 +59,9 @@
#include <sys time.h="">
#include <sys wait.h="">
#include <pthread.h>
-#include <mntent.h>
+#if defined(HAVE_MNTENT_H)
+# include <mntent.h>
+# endif
#endif
#include <time.h>
#include <signal.h>


sorry, related component should be 'Directory Server'

To ssh://git.fedorahosted.org/git/389/ds.git
82ae04c..20e5c59 master -> master
commit changeset:533cc7a/389-ds-base
Author: Rich Megginson rmeggins@redhat.com
Date: Fri Sep 14 09:24:52 2012 -0600

Metadata Update from @cgrzemba:
- Issue assigned to rmeggins
- Issue set to the milestone: 1.3.0.a1

3 years ago

Login to comment on this ticket.

Metadata