Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Don't support sysctl for the tools version of...
details: https://anonhg.NetBSD.org/src/rev/a5c1b42b97b7
branches: trunk
changeset: 781290:a5c1b42b97b7
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 31 01:23:49 2012 +0000
description:
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.
diffstat:
usr.bin/config/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f39d29f858fb -r a5c1b42b97b7 usr.bin/config/main.c
--- a/usr.bin/config/main.c Thu Aug 30 23:14:20 2012 +0000
+++ b/usr.bin/config/main.c Fri Aug 31 01:23:49 2012 +0000
@@ -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 @@
#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 @@
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] = '/';
Home |
Main Index |
Thread Index |
Old Index