From 32d81be95e8c1cb2555bbad2634d62287fc95d1e Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Tue, 10 Oct 2017 20:02:07 +0000 Subject: user/libstatgrab: new package --- user/libstatgrab/nongnu.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 user/libstatgrab/nongnu.patch (limited to 'user/libstatgrab/nongnu.patch') diff --git a/user/libstatgrab/nongnu.patch b/user/libstatgrab/nongnu.patch new file mode 100644 index 000000000..3e5e163f7 --- /dev/null +++ b/user/libstatgrab/nongnu.patch @@ -0,0 +1,12 @@ +diff -Nurd libstatgrab-0.91/src/libstatgrab/os_info.c libstatgrab-0.91.new/src/libstatgrab/os_info.c +--- libstatgrab-0.91/src/libstatgrab/os_info.c 2014-06-19 11:41:10.000000000 +0000 ++++ libstatgrab-0.91.new/src/libstatgrab/os_info.c 2017-10-10 18:42:04.844471568 +0000 +@@ -472,7 +472,7 @@ + host_info_buf->bitwidth = 64; + } + else { +- host_info_buf->bitwidth = sysconf(_SC_LONG_BIT); // well, maybe 64-bit disabled 128-bit system o.O ++ host_info_buf->bitwidth = sizeof(long int) * 8; // well, maybe 64-bit disabled 128-bit system o.O + } + host_info_buf->host_state = sg_unknown_configuration; + # endif -- cgit v1.2.3-60-g2f50