diff options
| author | manu <manu@NetBSD.org> | 2006-08-24 16:36:59 +0000 |
|---|---|---|
| committer | manu <manu@NetBSD.org> | 2006-08-24 16:36:59 +0000 |
| commit | 432f035fa68b817858566f07050400a7306400ca (patch) | |
| tree | 494c7bd1b22a3c4e8644d79521c5a11c72ca968a /sys/compat/linux/common | |
| parent | a4f2ed9867753b283cbb952018d8c862acd9e0bf (diff) | |
The return value for Linux shmat on amd64 does not suffer the same horrible
hack as on i386.
Diffstat (limited to 'sys/compat/linux/common')
| -rw-r--r-- | sys/compat/linux/common/linux_ipc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_ipc.c b/sys/compat/linux/common/linux_ipc.c index fa515df140d..b8453827c58 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.35 2006/07/23 22:06:09 ad Exp $ */ +/* $NetBSD: linux_ipc.c,v 1.36 2006/08/24 16:36:59 manu Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_ipc.c,v 1.35 2006/07/23 22:06:09 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ipc.c,v 1.36 2006/08/24 16:36:59 manu Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -407,6 +407,7 @@ linux_sys_shmget(l, v, retval) * in which the return value is to be passed. This is subsequently * handled by libc, apparently. */ +#ifndef __amd64__ int linux_sys_shmat(l, v, retval) struct lwp *l; @@ -431,6 +432,7 @@ linux_sys_shmat(l, v, retval) retval[0] = 0; return 0; } +#endif /* __amd64__ */ /* * Convert between Linux and NetBSD shmid_ds structures. |
