From 5576c8e4380badf262d3ee9af84404d24aae5a34 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Tue, 10 Apr 2018 21:28:11 +1000 Subject: [PATCH] library: build on non-glibc systems Some non-glibc systems didn't have libio.h or __BEGIN_DECLS Changes to make it more standard. References: issue #88 --- NEWS | 1 + proc/numa.h | 6 +++--- procio.c | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 822a88be..326435d0 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ procps-ng-3.3.14 * pgrep: Don't segfault on non match Debian #894917 * pgrep/pkill: Revert so matches all namespaces issue #91 * free: Fix scaling on 32-bit systems issue #89 + * library: Build on non-glibc systems issue #88 procps-ng-3.3.13 ---------------- diff --git a/proc/numa.h b/proc/numa.h index c198d9dc..ef647c53 100644 --- a/proc/numa.h +++ b/proc/numa.h @@ -20,9 +20,9 @@ #ifndef PROCPS_NUMA_H #define PROCPS_NUMA_H -#include +#include "procps.h" -__BEGIN_DECLS +EXTERN_C_BEGIN void numa_init (void); void numa_uninit (void); @@ -30,6 +30,6 @@ void numa_uninit (void); extern int (*numa_max_node) (void); extern int (*numa_node_of_cpu) (int); -__END_DECLS +EXTERN_C_END #endif diff --git a/procio.c b/procio.c index 479243e0..ad9b4de6 100644 --- a/procio.c +++ b/procio.c @@ -24,7 +24,6 @@ #endif #include #include -#include #include #include #include -- 2.40.0