All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] nfsctl: fix building with newer arches
Date: Thu, 05 Jan 2012 16:42:27 -0500	[thread overview]
Message-ID: <4F061943.1080403@RedHat.com> (raw)
In-Reply-To: <1323323507-22609-1-git-send-email-vapier@gentoo.org>



On 12/08/2011 12:51 AM, Mike Frysinger wrote:
> Newer arches omitting both nfsctl and nfsservctl which breaks nfsctl.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Committed...

steved.
> ---
>  support/nfs/nfsctl.c |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/support/nfs/nfsctl.c b/support/nfs/nfsctl.c
> index 89fa1a4..fec775f 100644
> --- a/support/nfs/nfsctl.c
> +++ b/support/nfs/nfsctl.c
> @@ -11,16 +11,22 @@
>  #endif
>  
>  #include <unistd.h>
> +#include <errno.h>
>  #include <asm/unistd.h>
>  #include "nfslib.h"
>  
>  /* compatibility hack... */
> -#ifndef __NR_nfsctl
> +#if !defined(__NR_nfsctl) && defined(__NR_nfsservctl)
>  #define __NR_nfsctl	__NR_nfsservctl
>  #endif
>  
>  int
>  nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
>  {
> +#ifdef __NR_nfsctl
>    return syscall (__NR_nfsctl, cmd, argp, resp);
> +#else
> +  errno = ENOSYS;
> +  return -1;
> +#endif
>  }

      reply	other threads:[~2012-01-05 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08  5:51 [PATCH] nfsctl: fix building with newer arches Mike Frysinger
2012-01-05 21:42 ` 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=4F061943.1080403@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.