linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH [nfs-utils]] check for libio.h availability
Date: Mon, 25 Mar 2013 10:19:21 -0400	[thread overview]
Message-ID: <51505CE9.3090909@RedHat.com> (raw)
In-Reply-To: <1364161322-25601-1-git-send-email-vapier@gentoo.org>



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 <vapier@gentoo.org>
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 <config.h>
> +#endif
> +
> +#ifdef HAVE_LIBIO_H
>  #include <libio.h>
> +#endif
>  #include <stdbool.h>
>  #include <sys/socket.h>
>  #include <netinet/in.h>
> 

      reply	other threads:[~2013-03-25 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-24 21:42 [PATCH [nfs-utils]] check for libio.h availability Mike Frysinger
2013-03-25 14:19 ` Steve Dickson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51505CE9.3090909@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).