diff options
author | David Smith <dsmith@redhat.com> | 2009-02-13 12:08:56 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-13 12:08:56 -0600 |
commit | 177bcaebf508bb86f06a4f7b0830096cf2f3acc5 (patch) | |
tree | 8428352bb10ee5153350fe934a4ec6c7dcd3c9f9 /runtime/procfs.c | |
parent | 57439678db34719d2795e84cbe1bb9ef2b537deb (diff) | |
download | systemtap-steved-177bcaebf508bb86f06a4f7b0830096cf2f3acc5.tar.gz systemtap-steved-177bcaebf508bb86f06a4f7b0830096cf2f3acc5.tar.xz systemtap-steved-177bcaebf508bb86f06a4f7b0830096cf2f3acc5.zip |
Fixed transport/procfs.c for systems that use the old transport (RHEL4).
2009-02-13 David Smith <dsmith@redhat.com>
* procfs.c: Added macros to guard against multiple inclusion.
2009-02-13 David Smith <dsmith@redhat.com>
* procfs.c: Added inclusion of ../procfs.c for
_stp_mkdir_proc_module().
Diffstat (limited to 'runtime/procfs.c')
-rw-r--r-- | runtime/procfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
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_ */ |