Module Name:    src
Committed By:   dholland
Date:           Sat May 29 18:55:35 UTC 2010

Modified Files:
        src/sys/compat/linux32/common: linux32_ipccall.c

Log Message:
Fix build without sysvipc configured, from Wolfgang Stukenbrock in PR 43376,
adjusted for current.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/compat/linux32/common/linux32_ipccall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux32/common/linux32_ipccall.c
diff -u src/sys/compat/linux32/common/linux32_ipccall.c:1.10 src/sys/compat/linux32/common/linux32_ipccall.c:1.11
--- src/sys/compat/linux32/common/linux32_ipccall.c:1.10	Tue Jan  5 13:22:41 2010
+++ src/sys/compat/linux32/common/linux32_ipccall.c	Sat May 29 18:55:34 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: linux32_ipccall.c,v 1.10 2010/01/05 13:22:41 mbalmer Exp $ */
+/* $NetBSD: linux32_ipccall.c,v 1.11 2010/05/29 18:55:34 dholland Exp $ */
 
 /*
  * Copyright (c) 2008 Nicolas Joly
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux32_ipccall.c,v 1.10 2010/01/05 13:22:41 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux32_ipccall.c,v 1.11 2010/05/29 18:55:34 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_sysv.h"
@@ -160,6 +160,7 @@
 
 }
 
+#if defined(SYSVSEM) || defined (SYSVMSG) || defined(SYSVSHM)
 static void
 bsd_to_linux32_ipc_perm(struct ipc_perm *bpp, struct linux32_ipc_perm *lpp)
 {
@@ -207,6 +208,7 @@
 	bpp->mode = lpp->l_mode;
 	bpp->_seq = lpp->l_seq;
 }
+#endif /* SYSVSEM, SYSVMSG, or SYSVSHM */
 
 #ifdef SYSVSEM
 static void

Reply via email to