From d91825919ba6a27dae03f7e9b811f3444083b004 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 23 Nov 2006 21:38:26 +0000 Subject: [PATCH] Added check for sys/utsname.h. --- configure.ac | 4 ++-- test/api/t15.c | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e2e953e..c9b6950 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Zebra, Index Data ApS, 1995-2006 -dnl $Id: configure.ac,v 1.38 2006-11-17 17:32:45 adam Exp $ +dnl $Id: configure.ac,v 1.39 2006-11-23 21:38:26 adam Exp $ dnl AC_PREREQ(2.59) AC_INIT([idzebra],[2.0.5],[zebra-help@indexdata.dk]) @@ -25,7 +25,7 @@ AC_PROG_CPP AM_PROG_LIBTOOL dnl dnl ------ headers -AC_CHECK_HEADERS(sys/resource.h sys/times.h sys/time.h sys/wait.h unistd.h) +AC_CHECK_HEADERS(sys/resource.h sys/times.h sys/time.h sys/wait.h sys/utsname.h unistd.h) dnl ------ crypt AC_CHECK_LIB(crypt, crypt) if test "$ac_cv_lib_crypt_crypt" = "yes"; then diff --git a/test/api/t15.c b/test/api/t15.c index 9a91f8e..9ff0ccd 100644 --- a/test/api/t15.c +++ b/test/api/t15.c @@ -1,4 +1,4 @@ -/* $Id: t15.c,v 1.10 2006-11-23 21:35:02 adam Exp $ +/* $Id: t15.c,v 1.11 2006-11-23 21:38:26 adam Exp $ Copyright (C) 2004-2006 Index Data ApS @@ -32,9 +32,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #if HAVE_SYS_WAIT_H #include #endif +#if HAVE_SYS_UTSNAME_H +#include +#endif #include -#include #include "testlib.h" @@ -111,6 +113,7 @@ static void tst(int argc, char **argv) #if HAVE_SYS_WAIT_H #if HAVE_UNISTD_H +#if HAVE_SYS_UTSNAME_H if (1) { @@ -139,6 +142,7 @@ static void tst(int argc, char **argv) } #endif #endif +#endif YAZ_CHECK(tl_close_down(0, zs)); } -- 1.7.10.4