pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/mtree/files Fix build on QNX. From Sean Boudr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1bd421930c8c
branches: trunk
changeset: 533004:1bd421930c8c
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Sep 06 21:08:08 2007 +0000
description:
Fix build on QNX. From Sean Boudreau.
diffstat:
pkgtools/mtree/files/pack_dev.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r e1691ec6b490 -r 1bd421930c8c pkgtools/mtree/files/pack_dev.c
--- a/pkgtools/mtree/files/pack_dev.c Thu Sep 06 20:54:53 2007 +0000
+++ b/pkgtools/mtree/files/pack_dev.c Thu Sep 06 21:08:08 2007 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pack_dev.c,v 1.2 2004/08/21 04:10:45 jlam Exp $ */
+/* $NetBSD: pack_dev.c,v 1.3 2007/09/06 21:08:08 joerg Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
#include <sys/cdefs.h>
#endif
#if !defined(lint)
-__RCSID("$NetBSD: pack_dev.c,v 1.2 2004/08/21 04:10:45 jlam Exp $");
+__RCSID("$NetBSD: pack_dev.c,v 1.3 2007/09/06 21:08:08 joerg Exp $");
#endif /* not lint */
#if HAVE_SYS_TYPES_H
@@ -73,6 +73,9 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef __QNXNTO__
+#include <sys/netmgr.h>
+#endif
#include "pack_dev.h"
@@ -96,7 +99,11 @@
portdev_t dev = 0;
if (n == 2) {
+#ifdef __QNXNTO__
+ dev = makedev(ND_LOCAL_NODE, numbers[0], numbers[1]);
+#else
dev = makedev(numbers[0], numbers[1]);
+#endif
if (major(dev) != numbers[0])
*error = iMajorError;
else if (minor(dev) != numbers[1])
Home |
Main Index |
Thread Index |
Old Index