summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2018-03-12 13:06:08 +1100
committerCraig Small <csmall@enc.com.au>2018-03-12 13:06:08 +1100
commitf46865eaf3d5366355b7d501645f439c28a44107 (patch)
tree551777143f5c938548575b024cd0136e159af7a4
parent8954e4349cb4ee74d2917771d651ab68ad6b5d2f (diff)
downloadprocps-ng-f46865eaf3d5366355b7d501645f439c28a44107.tar.gz
sysctl: fixup build system
Remove the external definition of the procio function.
-rw-r--r--Makefile.am3
-rw-r--r--proc/procio.h11
-rw-r--r--sysctl.c3
3 files changed, 3 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am
index dfc9738..68b0191 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -198,8 +198,7 @@ pwdx_LDADD= $(CYGWINFLAGS)
sysctl_SOURCES = \
sysctl.c \
lib/fileutils.c \
- procio.c \
- procio.h
+ procio.c
endif
tload_SOURCES = tload.c lib/strutils.c lib/fileutils.c
uptime_SOURCES = uptime.c lib/fileutils.c
diff --git a/proc/procio.h b/proc/procio.h
deleted file mode 100644
index c965561..0000000
--- a/proc/procio.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef PROCPS_PROC_PROCIO_H
-#define PROCPS_PROC_PROCIO_H
-
-#include "procps.h"
-
-EXTERN_C_BEGIN
-
-extern FILE *fprocopen(const char *, const char *);
-
-EXTERN_C_END
-#endif
diff --git a/sysctl.c b/sysctl.c
index c8a5c47..2371ca9 100644
--- a/sysctl.c
+++ b/sysctl.c
@@ -45,10 +45,11 @@
#include "fileutils.h"
#include "nls.h"
#include "xalloc.h"
-#include "proc/procio.h"
#include "proc/procps.h"
#include "proc/version.h"
+extern FILE *fprocopen(const char *, const char *);
+
/*
* Globals...
*/