]> granicus.if.org Git - procps-ng/commitdiff
library: build on non-glibc systems
authorCraig Small <csmall@enc.com.au>
Tue, 10 Apr 2018 11:28:11 +0000 (21:28 +1000)
committerCraig Small <csmall@enc.com.au>
Tue, 10 Apr 2018 11:28:11 +0000 (21:28 +1000)
Some non-glibc systems didn't have libio.h or __BEGIN_DECLS
Changes to make it more standard.

References:
 issue #88

NEWS
proc/numa.h
procio.c

diff --git a/NEWS b/NEWS
index 822a88bebfbc4cec9af80399da4103512e376b27..326435d017d1cdc6034f4eeea2a9deeb7bf16396 100644 (file)
--- 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
 ----------------
index c198d9dc79314b3cef6ca6ff2224db4c6f890298..ef647c5387397c2bfc583144eed528d7bb311e3f 100644 (file)
@@ -20,9 +20,9 @@
 #ifndef PROCPS_NUMA_H
 #define PROCPS_NUMA_H
 
-#include <features.h>
+#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
index 479243e0bd76dd6354f2077ee7ba7c3fa5662e9a..ad9b4de6dd64eed6751427a33fc086159e950423 100644 (file)
--- a/procio.c
+++ b/procio.c
@@ -24,7 +24,6 @@
 #endif
 #include <errno.h>
 #include <fcntl.h>
-#include <libio.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>