From 177bcaebf508bb86f06a4f7b0830096cf2f3acc5 Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 13 Feb 2009 12:08:56 -0600 Subject: Fixed transport/procfs.c for systems that use the old transport (RHEL4). 2009-02-13 David Smith * procfs.c: Added macros to guard against multiple inclusion. 2009-02-13 David Smith * procfs.c: Added inclusion of ../procfs.c for _stp_mkdir_proc_module(). --- runtime/procfs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/procfs.c') diff --git a/runtime/procfs.c b/runtime/procfs.c index afedb4f4..7e3c8352 100644 --- a/runtime/procfs.c +++ b/runtime/procfs.c @@ -14,6 +14,9 @@ * number of needed files. */ +#ifndef _STP_PROCFS_C_ +#define _STP_PROCFS_C_ + #define STP_MAX_PROCFS_FILES 16 static int _stp_num_pde = 0; static int _stp_num_procfs_files = 0; @@ -209,3 +212,5 @@ static void _stp_close_procfs(void) _stp_num_pde = 0; _stp_rmdir_proc_module(); } + +#endif /* _STP_PROCFS_C_ */ -- cgit