Module Name: src Committed By: pooka Date: Fri Jul 19 10:53:20 UTC 2013
Modified Files: src/tools/compat: configure.ac Log Message: Fix some tests for musl libc -based systems. from Justin Cormack and Jens Staal To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77 src/tools/compat/configure.ac Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tools/compat/configure.ac diff -u src/tools/compat/configure.ac:1.76 src/tools/compat/configure.ac:1.77 --- src/tools/compat/configure.ac:1.76 Tue Mar 5 16:26:41 2013 +++ src/tools/compat/configure.ac Fri Jul 19 10:53:20 2013 @@ -1,4 +1,4 @@ -# $NetBSD: configure.ac,v 1.76 2013/03/05 16:26:41 christos Exp $ +# $NetBSD: configure.ac,v 1.77 2013/07/19 10:53:20 pooka Exp $ # # Autoconf definition file for libnbcompat. # @@ -100,7 +100,9 @@ AC_CHECK_TYPES([id_t, long long, u_long, AC_CHECK_TYPE(socklen_t, [AC_DEFINE([HAVE_SOCKLEN_T], 1, [Define if you have the socklen_t type.])],, [#include <sys/types.h> +#ifdef HAVE_RPC_TYPES_H #include <rpc/types.h> +#endif #include <sys/socket.h>]) dnl XXX - This is UGLY. Need a better way to homogenize the bitsized types, @@ -141,6 +143,9 @@ AC_CHECK_DECLS([optind, optreset],,, [ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#ifdef HAVE_GETOPT_H +#include <getopt.h> +#endif ]) AC_CHECK_DECLS(sys_signame,,, [#include <signal.h>])