Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Forward-declare `struct lwp' so we can use `struct ...



details:   https://anonhg.NetBSD.org/src/rev/5c5a4a82dd9b
branches:  trunk
changeset: 353508:5c5a4a82dd9b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed May 10 06:08:56 2017 +0000

description:
Forward-declare `struct lwp' so we can use `struct lwp *' here.

diffstat:

 sys/kern/makesyscalls.sh |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 95193e7457a5 -r 5c5a4a82dd9b sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Wed May 10 04:46:13 2017 +0000
+++ b/sys/kern/makesyscalls.sh  Wed May 10 06:08:56 2017 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index