Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config When making the symlink for machine -> arch/f...



details:   https://anonhg.NetBSD.org/src/rev/c62a26452c91
branches:  trunk
changeset: 767100:c62a26452c91
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jul 09 08:01:58 2011 +0000

description:
When making the symlink for machine -> arch/foo/include
also make foo -> arch/foo/include.  This allows one to include <foo/bar.h>
include <machine/bar.h> which can be handy.

diffstat:

 usr.bin/config/main.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 3cefc4a149b4 -r c62a26452c91 usr.bin/config/main.c
--- a/usr.bin/config/main.c     Sat Jul 09 07:57:53 2011 +0000
+++ b/usr.bin/config/main.c     Sat Jul 09 08:01:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.42 2010/03/22 14:40:54 pooka Exp $  */
+/*     $NetBSD: main.c,v 1.43 2011/07/09 08:01:58 matt Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -541,6 +541,7 @@
        snprintf(buf, sizeof(buf), "arch/%s/include", machine);
        p = sourcepath(buf);
        ret = recreate(p, "machine");
+       ret = recreate(p, machine);
        free(p);
 
        if (machinearch != NULL) {



Home | Main Index | Thread Index | Old Index