Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/cdrom/macppc_installboot Include <dirent.h> instead ...
details: https://anonhg.NetBSD.org/src/rev/ce90098053cd
branches: trunk
changeset: 332553:ce90098053cd
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Sep 27 15:21:40 2014 +0000
description:
Include <dirent.h> instead of <sys/dirent.h> for POSIX compliancy.
Fixes build errors on Linux, tested on CentOS.
The problem was pointed out by Valery Ushakov.
Note <sys/param.h> will be prepared by src/tools/compat/configure.
XXX: not sure if we still need this dumb tool for a TierII port...
diffstat:
distrib/cdrom/macppc_installboot/cd9660.c | 6 +++---
distrib/cdrom/macppc_installboot/cd9660_util.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r 0870193c5221 -r ce90098053cd distrib/cdrom/macppc_installboot/cd9660.c
--- a/distrib/cdrom/macppc_installboot/cd9660.c Sat Sep 27 12:11:13 2014 +0000
+++ b/distrib/cdrom/macppc_installboot/cd9660.c Sat Sep 27 15:21:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660.c,v 1.3 2008/05/14 13:29:27 tsutsui Exp $ */
+/* $NetBSD: cd9660.c,v 1.4 2014/09/27 15:21:40 tsutsui Exp $ */
/*-
* Copyright (c) 2005 Izumi Tsutsui. All rights reserved.
@@ -30,11 +30,10 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: cd9660.c,v 1.3 2008/05/14 13:29:27 tsutsui Exp $");
+__RCSID("$NetBSD: cd9660.c,v 1.4 2014/09/27 15:21:40 tsutsui Exp $");
#endif /* !__lint */
#include <sys/param.h>
-#include <sys/dirent.h>
#if !HAVE_NBTOOL_CONFIG_H
#include <sys/mount.h>
@@ -49,6 +48,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <dirent.h>
#include <fs/cd9660/iso.h>
diff -r 0870193c5221 -r ce90098053cd distrib/cdrom/macppc_installboot/cd9660_util.c
--- a/distrib/cdrom/macppc_installboot/cd9660_util.c Sat Sep 27 12:11:13 2014 +0000
+++ b/distrib/cdrom/macppc_installboot/cd9660_util.c Sat Sep 27 15:21:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_util.c,v 1.2 2009/03/25 15:26:49 tsutsui Exp $ */
+/* $NetBSD: cd9660_util.c,v 1.3 2014/09/27 15:21:40 tsutsui Exp $ */
/*-
* Copyright (c) 1994
@@ -42,9 +42,9 @@
#include "nbtool_config.h"
#endif
+#include <sys/param.h>
#include <assert.h>
-#include <sys/param.h>
-#include <sys/dirent.h>
+#include <dirent.h>
#include <fs/cd9660/iso.h>
#define KASSERT(x) assert(x) /* XXX for <fs/unicode.h> */
Home |
Main Index |
Thread Index |
Old Index