From f46865eaf3d5366355b7d501645f439c28a44107 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Mon, 12 Mar 2018 13:06:08 +1100 Subject: [PATCH] sysctl: fixup build system Remove the external definition of the procio function. --- Makefile.am | 3 +-- proc/procio.h | 11 ----------- sysctl.c | 3 ++- 3 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 proc/procio.h diff --git a/Makefile.am b/Makefile.am index dfc97383..68b0191b 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 c9655610..00000000 --- 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 c8a5c47d..2371ca9a 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... */