summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common
diff options
context:
space:
mode:
authorfvdl <fvdl@NetBSD.org>1996-11-15 09:51:25 +0000
committerfvdl <fvdl@NetBSD.org>1996-11-15 09:51:25 +0000
commit2452eadc60ede88f527bbb7bf30ab49c3ff8b3bf (patch)
tree8eef22ed6ad723fa8dbdd3cdba4bc1cfa0dab8bc /sys/compat/linux/common
parentac0bb072686a03f0c2ae6ac9a7eb8be97870cea2 (diff)
Avoid compiler warnings when none of the SYSV* options is defined.
Diffstat (limited to 'sys/compat/linux/common')
-rw-r--r--sys/compat/linux/common/linux_ipc.c6
-rw-r--r--sys/compat/linux/common/linux_ipccall.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_ipc.c b/sys/compat/linux/common/linux_ipc.c
index 5d3bd79d529..5ba891f84ce 100644
--- a/sys/compat/linux/common/linux_ipc.c
+++ b/sys/compat/linux/common/linux_ipc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */
+/* $NetBSD: linux_ipc.c,v 1.11 1996/11/15 09:51:25 fvdl Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -112,10 +112,12 @@ static void bsd_to_linux_shmid_ds __P((struct shmid_ds *,
#endif
+#if defined (SYSVSEM) || defined(SYSVSHM) || defined(SYSVMSG)
static void linux_to_bsd_ipc_perm __P((struct linux_ipc_perm *,
struct ipc_perm *));
static void bsd_to_linux_ipc_perm __P((struct ipc_perm *,
struct linux_ipc_perm *));
+#endif
int
linux_sys_ipc(p, v, retval)
@@ -165,6 +167,7 @@ linux_sys_ipc(p, v, retval)
}
}
+#if defined (SYSVSEM) || defined(SYSVSHM) || defined(SYSVMSG)
/*
* Convert between Linux and NetBSD ipc_perm structures. Only the
* order of the fields is different.
@@ -198,6 +201,7 @@ bsd_to_linux_ipc_perm(bpp, lpp)
lpp->l_mode = bpp->mode;
lpp->l_seq = bpp->seq;
}
+#endif
#ifdef SYSVSEM
/*
diff --git a/sys/compat/linux/common/linux_ipccall.c b/sys/compat/linux/common/linux_ipccall.c
index 2f5cb016be7..01095e3f953 100644
--- a/sys/compat/linux/common/linux_ipccall.c
+++ b/sys/compat/linux/common/linux_ipccall.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ipccall.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */
+/* $NetBSD: linux_ipccall.c,v 1.11 1996/11/15 09:51:25 fvdl Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -112,10 +112,12 @@ static void bsd_to_linux_shmid_ds __P((struct shmid_ds *,
#endif
+#if defined (SYSVSEM) || defined(SYSVSHM) || defined(SYSVMSG)
static void linux_to_bsd_ipc_perm __P((struct linux_ipc_perm *,
struct ipc_perm *));
static void bsd_to_linux_ipc_perm __P((struct ipc_perm *,
struct linux_ipc_perm *));
+#endif
int
linux_sys_ipc(p, v, retval)
@@ -165,6 +167,7 @@ linux_sys_ipc(p, v, retval)
}
}
+#if defined (SYSVSEM) || defined(SYSVSHM) || defined(SYSVMSG)
/*
* Convert between Linux and NetBSD ipc_perm structures. Only the
* order of the fields is different.
@@ -198,6 +201,7 @@ bsd_to_linux_ipc_perm(bpp, lpp)
lpp->l_mode = bpp->mode;
lpp->l_seq = bpp->seq;
}
+#endif
#ifdef SYSVSEM
/*