From 06afd10525bbed53ea74c14694926c3bf37c1707 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 2 Apr 2018 00:00:00 -0600 Subject: [PATCH] procio: remove glibc dependency & make a proper header Duplicate that change made in master branch. While we're at it, let's remove an unnecessary include from procio.h and reflect in its single prototype what those 'const char *' params are really supposed to be. Signed-off-by: Jim Warner --- include/procio.h | 4 +--- lib/procio.c | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/procio.h b/include/procio.h index cbefad08..043506ab 100644 --- a/include/procio.h +++ b/include/procio.h @@ -1,8 +1,6 @@ #ifndef PROCPS_PROC_PROCIO_H #define PROCPS_PROC_PROCIO_H -#include "procps.h" - -FILE *fprocopen(const char *, const char *); +FILE *fprocopen(const char *path, const char *mode); #endif diff --git a/lib/procio.c b/lib/procio.c index 479243e0..ad9b4de6 100644 --- a/lib/procio.c +++ b/lib/procio.c @@ -24,7 +24,6 @@ #endif #include #include -#include #include #include #include