procio: remove glibc dependency & make a proper header

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>
This commit is contained in:
Jim Warner 2018-04-02 00:00:00 -06:00 committed by Craig Small
parent c2a29d370c
commit 06afd10525
2 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,6 @@
#ifndef PROCPS_PROC_PROCIO_H #ifndef PROCPS_PROC_PROCIO_H
#define PROCPS_PROC_PROCIO_H #define PROCPS_PROC_PROCIO_H
#include "procps.h" FILE *fprocopen(const char *path, const char *mode);
FILE *fprocopen(const char *, const char *);
#endif #endif

View File

@ -24,7 +24,6 @@
#endif #endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <libio.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>