From 2746eaccc4d21c8a5ad24fc9ac2a1b3a6ec55dd6 Mon Sep 17 00:00:00 2001 From: pschwan Date: Sun, 6 Jul 2003 22:55:42 +0000 Subject: [PATCH] Some kernels apparently need an explicit include for timeval here --- lnet/include/lnet/types.h | 4 +++- lustre/portals/include/portals/types.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lnet/include/lnet/types.h b/lnet/include/lnet/types.h index 901a717..0269290 100644 --- a/lnet/include/lnet/types.h +++ b/lnet/include/lnet/types.h @@ -10,7 +10,9 @@ typedef u_int32_t __u32; typedef u_int64_t __u64; #endif -#ifndef __KERNEL__ +#ifdef __KERNEL__ +# include +#else # include # define do_gettimeofday(tv) gettimeofday(tv, NULL) #endif diff --git a/lustre/portals/include/portals/types.h b/lustre/portals/include/portals/types.h index 901a717..0269290 100644 --- a/lustre/portals/include/portals/types.h +++ b/lustre/portals/include/portals/types.h @@ -10,7 +10,9 @@ typedef u_int32_t __u32; typedef u_int64_t __u64; #endif -#ifndef __KERNEL__ +#ifdef __KERNEL__ +# include +#else # include # define do_gettimeofday(tv) gettimeofday(tv, NULL) #endif -- 1.8.3.1