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/transport/procfs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'runtime/transport/procfs.c') diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index ca33e0fd..0c31ae3c 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -9,6 +9,8 @@ * later version. */ +#include "../procfs.c" // for _stp_mkdir_proc_module() + #define STP_DEFAULT_BUFFERS 256 static int _stp_current_buffers = STP_DEFAULT_BUFFERS; @@ -72,7 +74,7 @@ static ssize_t _stp_ctl_write_cmd(struct file *file, const char __user *buf, siz if (get_user(type, (int __user *)buf)) return -EFAULT; -#if DEBUG_TRANSPORT > 0 +#if DEBUG_TRANS if (type < STP_MAX_CMD) _dbug("Got %s. len=%d\n", _stp_command_name[type], (int)count); #endif @@ -121,7 +123,7 @@ struct _stp_buffer { static DECLARE_WAIT_QUEUE_HEAD(_stp_ctl_wq); -#if DEBUG_TRANSPORT > 0 +#if DEBUG_TRANS static void _stp_ctl_write_dbug(int type, void *data, int len) { char buf[64]; @@ -155,7 +157,7 @@ static int _stp_ctl_write(int type, void *data, int len) struct _stp_buffer *bptr; unsigned long flags; -#if DEBUG_TRANSPORT > 0 +#if DEBUG_TRANS _stp_ctl_write_dbug(type, data, len); #endif -- cgit