]> granicus.if.org Git - procps-ng/commitdiff
procio: remove glibc dependency & make a proper header
authorJim Warner <james.warner@comcast.net>
Mon, 2 Apr 2018 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Sat, 5 May 2018 21:19:38 +0000 (07:19 +1000)
Duplicate that <libio.h> 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 <james.warner@comcast.net>
include/procio.h
lib/procio.c

index cbefad0867a86c346925e928c015487583325265..043506ab08b25831370a0f9a0c1686869410e1d5 100644 (file)
@@ -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
index 479243e0bd76dd6354f2077ee7ba7c3fa5662e9a..ad9b4de6dd64eed6751427a33fc086159e950423 100644 (file)
@@ -24,7 +24,6 @@
 #endif
 #include <errno.h>
 #include <fcntl.h>
-#include <libio.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>