From 6e7e340e358e0dee96b79b27beed68da1987b2f8 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 9 Apr 2003 22:45:53 +0000 Subject: [PATCH] Add 2.4.20 UML support to ptlrpc/pinger.c. --- lustre/ptlrpc/pinger.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index a657712..86aeb33 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -85,10 +85,11 @@ static int ptlrpc_pinger_main(void *arg) spin_unlock_irqrestore(¤t->sigmask_lock, flags); #endif -#ifdef __arch_um__ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) - sprintf(current->comm, "%s|%d", data->name, current->thread.extern_pid); -#endif +#if defined(__arch_um__) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,20)) + sprintf(current->comm, "%s|%d", data->name,current->thread.extern_pid); +#elif defined(__arch_um__) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) + sprintf(current->comm, "%s|%d", data->name, + current->thread.mode.tt.extern_pid); #else strcpy(current->comm, data->name); #endif -- 1.8.3.1