Module Name:    src
Committed By:   christos
Date:           Fri Aug 31 01:23:49 UTC 2012

Modified Files:
        src/usr.bin/config: main.c

Log Message:
Don't support sysctl for the tools version of config. It is too complicated
to do so, and config -x is not used during the build.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/usr.bin/config/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/config/main.c
diff -u src/usr.bin/config/main.c:1.48 src/usr.bin/config/main.c:1.49
--- src/usr.bin/config/main.c:1.48	Thu Aug 30 08:31:25 2012
+++ src/usr.bin/config/main.c	Thu Aug 30 21:23:49 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.48 2012/08/30 12:31:25 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.49 2012/08/31 01:23:49 christos Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -60,7 +60,7 @@ COPYRIGHT("@(#) Copyright (c) 1992, 1993
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <sys/mman.h>
-#ifdef __NetBSD__
+#if !HAVE_NBTOOL_CONFIG_H
 #include <sys/sysctl.h>
 #endif
 #include <paths.h>
@@ -234,7 +234,7 @@ main(int argc, char **argv)
 
 	if (xflag) {
 		if (argc == 0) {
-#ifdef __NetBSD__
+#if !HAVE_NBTOOL_CONFIG_H
 			char path_unix[MAXPATHLEN];
 			size_t len = sizeof(path_unix) - 1;
 			path_unix[0] = '/';

Reply via email to