diff options
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r-- | fs/lockd/svc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 264c19c2e..c9e4b4b17 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -235,7 +235,10 @@ lockd_up(void) } if ((error = svc_makesock(serv, IPPROTO_UDP, 0)) < 0 - || (error = svc_makesock(serv, IPPROTO_TCP, 0)) < 0) { +#ifdef CONFIG_NFSD_TCP + || (error = svc_makesock(serv, IPPROTO_TCP, 0)) < 0 +#endif + ) { if (warned++ == 0) printk(KERN_WARNING "lockd_up: makesock failed, error=%d\n", error); |