From: Mark Wong Date: Thu, 11 Sep 2008 03:20:28 +0000 (-0700) Subject: Include the correct header file from Linux for PROC_SUPER_MAGIC. X-Git-Tag: v0.0.5~19 X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=399fd52beb2cce32610b5e8433233a341f663434;p=pg_proctab.git Include the correct header file from Linux for PROC_SUPER_MAGIC. --- diff --git a/pg_cputime.c b/pg_cputime.c index 821de35..8b3d6e7 100644 --- a/pg_cputime.c +++ b/pg_cputime.c @@ -22,11 +22,7 @@ PG_MODULE_MAGIC; #define INTEGER_LEN 10 #ifdef __linux__ -#if 0 -#include -#else -#define PROC_SUPER_MAGIC 0x9fa0 -#endif +#include #define PROCFS "/proc" diff --git a/pg_loadavg.c b/pg_loadavg.c index e300e8b..9c81678 100644 --- a/pg_loadavg.c +++ b/pg_loadavg.c @@ -15,11 +15,7 @@ #include #ifdef __linux__ -#if 0 -#include -#else -#define PROC_SUPER_MAGIC 0x9fa0 -#endif +#include #define PROCFS "/proc" diff --git a/pg_memusage.c b/pg_memusage.c index 736b835..b165f7a 100644 --- a/pg_memusage.c +++ b/pg_memusage.c @@ -24,11 +24,7 @@ PG_MODULE_MAGIC; #ifdef __linux__ #define PROCFS "/proc" -#if 0 -#include -#else -#define PROC_SUPER_MAGIC 0x9fa0 -#endif +#include #define GET_NEXT_VALUE(p, q, value, length, msg, delim) \ if ((q = strchr(p, delim)) == NULL) \ diff --git a/pg_proctab.c b/pg_proctab.c index fc99f87..48410a9 100644 --- a/pg_proctab.c +++ b/pg_proctab.c @@ -22,11 +22,7 @@ * code. */ -#if 0 -#include -#else -#define PROC_SUPER_MAGIC 0x9fa0 -#endif +#include #define PROCFS "/proc"