From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:9511 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757816Ab3CYOTY (ORCPT ); Mon, 25 Mar 2013 10:19:24 -0400 Message-ID: <51505CE9.3090909@RedHat.com> Date: Mon, 25 Mar 2013 10:19:21 -0400 From: Steve Dickson MIME-Version: 1.0 To: Mike Frysinger CC: linux-nfs@vger.kernel.org Subject: Re: [PATCH [nfs-utils]] check for libio.h availability References: <1364161322-25601-1-git-send-email-vapier@gentoo.org> In-Reply-To: <1364161322-25601-1-git-send-email-vapier@gentoo.org> Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-nfs-owner@vger.kernel.org List-ID: On 24/03/13 17:42, Mike Frysinger wrote: > On some systems (like uClibc), there isn't a libio.h header. But it > isn't also needed on them. So check for the header first. > > Signed-off-by: Mike Frysinger Committed... steved. > --- > configure.ac | 2 +- > support/include/sockaddr.h | 6 ++++++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index f461219..cc7f3b4 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -358,7 +358,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h \ > stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \ > sys/param.h sys/socket.h sys/time.h sys/vfs.h \ > syslog.h unistd.h com_err.h et/com_err.h \ > - ifaddrs.h nfs-plugin.h]) > + ifaddrs.h nfs-plugin.h libio.h]) > > dnl ************************************************************* > dnl Checks for typedefs, structures, and compiler characteristics > diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h > index 72766db..a1c30f9 100644 > --- a/support/include/sockaddr.h > +++ b/support/include/sockaddr.h > @@ -20,7 +20,13 @@ > #ifndef NFS_UTILS_SOCKADDR_H > #define NFS_UTILS_SOCKADDR_H > > +#ifdef HAVE_CONFIG_H > +#include > +#endif > + > +#ifdef HAVE_LIBIO_H > #include > +#endif > #include > #include > #include >