Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Include syscall.h and syscallargs.h from <srcsys> i...



details:   https://anonhg.NetBSD.org/src/rev/70467b48c330
branches:  trunk
changeset: 763028:70467b48c330
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Mar 08 18:29:49 2011 +0000

description:
Include syscall.h and syscallargs.h from <srcsys> instead of <sys>
in the RUMP_CLIENT case.  This makes librumpclient compile against
-current sources regardless of host.

inspired by Taylor R Campbell

diffstat:

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

diffs (30 lines):

diff -r 12385646d26a -r 70467b48c330 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Tue Mar 08 18:28:01 2011 +0000
+++ b/sys/kern/makesyscalls.sh  Tue Mar 08 18:29:49 2011 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh -
-#      $NetBSD: makesyscalls.sh,v 1.116 2011/02/22 14:08:58 pooka Exp $
+#      $NetBSD: makesyscalls.sh,v 1.117 2011/03/08 18:29:49 pooka Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -220,15 +220,17 @@
        printf "#include <sys/param.h>\n" > rumpcalls
        printf "#include <sys/fstypes.h>\n" > rumpcalls
        printf "#include <sys/proc.h>\n" > rumpcalls
-       printf "#include <sys/syscall.h>\n" > rumpcalls
-       printf "#include <sys/syscallargs.h>\n\n" > rumpcalls
        printf "#ifdef RUMP_CLIENT\n" > rumpcalls
+       printf "#include <srcsys/syscall.h>\n" > rumpcalls
+       printf "#include <srcsys/syscallargs.h>\n\n" > rumpcalls
        printf "#include <errno.h>\n" > rumpcalls
        printf "#include <rump/rumpclient.h>\n\n" > rumpcalls
        printf "#define rsys_syscall(num, data, dlen, retval)\t\\\n" > rumpcalls
        printf "    rumpclient_syscall(num, data, dlen, retval)\n" > rumpcalls
        printf "#define rsys_seterrno(error) errno = error\n" > rumpcalls
        printf "#define rsys_alias(a,b)\n#else\n" > rumpcalls
+       printf "#include <sys/syscall.h>\n" > rumpcalls
+       printf "#include <sys/syscallargs.h>\n\n" > rumpcalls
        printf "#include <sys/syscallvar.h>\n\n" > rumpcalls
        printf "#include <rump/rumpuser.h>\n" > rumpcalls
        printf "#include \"rump_private.h\"\n\n" > rumpcalls



Home | Main Index | Thread Index | Old Index