Module Name: src
Committed By: riastradh
Date: Wed May 10 06:08:56 UTC 2017
Modified Files:
src/sys/kern: makesyscalls.sh
Log Message:
Forward-declare `struct lwp' so we can use `struct lwp *' here.
To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/kern/makesyscalls.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/makesyscalls.sh
diff -u src/sys/kern/makesyscalls.sh:1.168 src/sys/kern/makesyscalls.sh:1.169
--- src/sys/kern/makesyscalls.sh:1.168 Sun Jan 15 17:00:59 2017
+++ src/sys/kern/makesyscalls.sh Wed May 10 06:08:56 2017
@@ -1,4 +1,4 @@
-# $NetBSD: makesyscalls.sh,v 1.168 2017/01/15 17:00:59 christos Exp $
+# $NetBSD: makesyscalls.sh,v 1.169 2017/05/10 06:08:56 riastradh Exp $
#
# Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
# All rights reserved.
@@ -341,6 +341,10 @@ NR == 1 {
printf "#include <rump/rump_syscalls_compat.h>\n\n" > rumpcallshdr
printf "%s", sysarghdrextra > sysarghdr
+ printf "/* Forward declaration */\n" > sysarghdr
+ printf "struct lwp;\n" > sysarghdr
+ printf "\n" > sysarghdr
+
# Write max number of system call arguments to both headers
printf("#define\t%sMAXSYSARGS\t%d\n\n", constprefix, maxsysargs) \
> sysnumhdr