X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Fnfs%2Fnfsctl.c;h=fec775f913d6879cf24b187de8aeb43598258fff;hb=188e5ae9789bf0a7f8033f6aae40e65e652c7b08;hp=89fa1a48f0fbe7058a3634e9ef9f5806b1c3f21e;hpb=1408e610ac2db753543a546c4312b2eb6799f044;p=nfs-utils.git 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 +#include #include #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 }