Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Use the /proc way for counting host cores on...
details: https://anonhg.NetBSD.org/src/rev/22452184ff95
branches: trunk
changeset: 784012:22452184ff95
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jan 14 21:04:15 2013 +0000
description:
Use the /proc way for counting host cores on Cygwin.
diffstat:
lib/librumpuser/rumpuser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 76ff2778e938 -r 22452184ff95 lib/librumpuser/rumpuser.c
--- a/lib/librumpuser/rumpuser.c Mon Jan 14 21:00:16 2013 +0000
+++ b/lib/librumpuser/rumpuser.c Mon Jan 14 21:04:15 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser.c,v 1.27 2013/01/10 19:14:12 pooka Exp $ */
+/* $NetBSD: rumpuser.c,v 1.28 2013/01/14 21:04:15 pooka Exp $ */
/*
* Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.27 2013/01/10 19:14:12 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.28 2013/01/14 21:04:15 pooka Exp $");
#endif /* !lint */
#include <sys/ioctl.h>
@@ -765,7 +765,7 @@
size_t sz = sizeof(ncpu);
sysctlbyname("hw.ncpu", &ncpu, &sz, NULL, 0);
-#elif __linux__
+#elif defined(__linux__) || defined(__CYGWIN__)
FILE *fp;
char *line = NULL;
size_t n = 0;
Home |
Main Index |
Thread Index |
Old Index