Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix module build.



details:   https://anonhg.NetBSD.org/src/rev/24bb46a8d9d1
branches:  trunk
changeset: 991148:24bb46a8d9d1
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Jun 30 11:10:54 2018 +0000

description:
Fix module build.

Options SUIDSCRIPTS and FDSCRIPTS will be off for the module.
If one (or both) should be enabled, add it to CPPFLAGSin the module Makefile.

diffstat:

 sys/kern/exec_script.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r b00b021aa122 -r 24bb46a8d9d1 sys/kern/exec_script.c
--- a/sys/kern/exec_script.c    Sat Jun 30 10:50:30 2018 +0000
+++ b/sys/kern/exec_script.c    Sat Jun 30 11:10:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_script.c,v 1.76 2018/06/30 00:37:37 christos Exp $        */
+/*     $NetBSD: exec_script.c,v 1.77 2018/06/30 11:10:54 kre Exp $     */
 
 /*
  * Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -31,9 +31,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_script.c,v 1.76 2018/06/30 00:37:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_script.c,v 1.77 2018/06/30 11:10:54 kre Exp $");
 
+#ifdef _KERNEL_OPT
 #include "opt_script.h"
+#endif
 
 #if defined(SETUIDSCRIPTS) && !defined(FDSCRIPTS)
 #define FDSCRIPTS              /* Need this for safe set-id scripts. */



Home | Main Index | Thread Index | Old Index