git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ed6a64
)
be compilable even when _SC_PHYS_PAGES is not available
author
YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp>
Mon, 22 Apr 2013 13:20:09 +0000
(22:20 +0900)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 22 Apr 2013 15:51:24 +0000
(08:51 -0700)
Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/system-stats.c
patch
|
blob
|
history
diff --git
a/vswitchd/system-stats.c
b/vswitchd/system-stats.c
index
f679516
..
2e18b1b
100644
(file)
--- a/
vswitchd/system-stats.c
+++ b/
vswitchd/system-stats.c
@@
-97,7
+97,11
@@
get_memory_stats(struct smap *stats)
{
if (!LINUX_DATAPATH) {
unsigned int pagesize = get_page_size();
+#ifdef _SC_PHYS_PAGES
long int phys_pages = sysconf(_SC_PHYS_PAGES);
+#else
+ long int phys_pages = 0;
+#endif
#ifdef _SC_AVPHYS_PAGES
long int avphys_pages = sysconf(_SC_AVPHYS_PAGES);
#else