Source-Changes-HG archive

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

[src/trunk]: src/sbin/newfs_msdos nbtool_config.h undefines _NETBSD_SOURCE, a...



details:   https://anonhg.NetBSD.org/src/rev/37d10e423216
branches:  trunk
changeset: 784401:37d10e423216
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 27 21:56:26 2013 +0000

description:
nbtool_config.h undefines _NETBSD_SOURCE, and that makes <sys/types.h> not
define cpuid_t, which makes <sys/mount.h> unincludable. Although this is a
bug in the build system, it is simpler to fix it here.

diffstat:

 sbin/newfs_msdos/mkfs_msdos.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 3182439043a5 -r 37d10e423216 sbin/newfs_msdos/mkfs_msdos.c
--- a/sbin/newfs_msdos/mkfs_msdos.c     Sun Jan 27 20:15:58 2013 +0000
+++ b/sbin/newfs_msdos/mkfs_msdos.c     Sun Jan 27 21:56:26 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mkfs_msdos.c,v 1.5 2013/01/24 19:24:56 christos Exp $  */
+/*     $NetBSD: mkfs_msdos.c,v 1.6 2013/01/27 21:56:26 christos Exp $  */
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -37,16 +37,16 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: mkfs_msdos.c,v 1.5 2013/01/24 19:24:56 christos Exp $");
+__RCSID("$NetBSD: mkfs_msdos.c,v 1.6 2013/01/27 21:56:26 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include <sys/types.h>
 #include <sys/param.h>
-#include <sys/mount.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #ifndef MAKEFS
+#include <sys/mount.h>
 #include <sys/disk.h>
 #endif
 



Home | Main Index | Thread Index | Old Index