Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-05-18 16:21:48 +0200
committerArthur de Jong <arthur@arthurdejong.org>2012-05-18 16:21:48 +0200
commitc23fb324eae950a912d39a0bb1287efa9b444329 (patch)
tree21f5a47d35234d5d20c1df76c2c418f45706a3ef /configure.ac
parent4bb884423460d712041c87f353843512300a1c66 (diff)
get rid of a few compiler warnings on FreeBSD
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1693 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a021741..d36a38f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -273,7 +273,7 @@ AC_ARG_WITH(nss-maps,
,[ with_nss_maps="all" ])
# checks for availability of header files
-AC_CHECK_HEADERS([ctype.h strings.h pthread.h fcntl.h limits.h])
+AC_CHECK_HEADERS([ctype.h strings.h pthread.h pthread_np.h fcntl.h limits.h])
AC_CHECK_HEADERS([nss.h nss_common.h grp.h shadow.h aliases.h netdb.h rpc/rpcent.h])
AC_CHECK_HEADERS([netinet/ether.h arpa/inet.h netinet/in.h])
AC_CHECK_HEADERS([nsswitch.h nss_dbdefs.h])
@@ -590,7 +590,9 @@ then
# replace daemon() function if it is not on the system
AC_SEARCH_LIBS(daemon,bsd)
AC_REPLACE_FUNCS(daemon)
- AC_CHECK_DECLS([daemon],,,[#include <unistd.h>])
+ AC_CHECK_DECLS([daemon],,,[
+ #include <unistd.h>
+ #include <stdlib.h>])
# replace ether_aton_r() and ether_ntoa_r() if they are not found
AC_CHECK_FUNCS(ether_aton_r ether_ntoa_r,,[AC_LIBOBJ(ether)])