From: jacob Date: Tue, 9 Mar 2004 01:08:30 +0000 (+0000) Subject: fixup last commit X-Git-Tag: 1.2.2~235 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=4a616a6b5e137b34e0be2773354cf43ec57ceb8f;p=fs%2Flustre-release.git fixup last commit --- diff --git a/lnet/include/lnet/types.h b/lnet/include/lnet/types.h index ccce5d5..d4ca453 100644 --- a/lnet/include/lnet/types.h +++ b/lnet/include/lnet/types.h @@ -1,20 +1,27 @@ #ifndef _P30_TYPES_H_ #define _P30_TYPES_H_ -#ifdef __KERNEL__ -# include +#ifdef __linux__ # include -# include -#else /* !__KERNEL__ */ +# if defined(__powerpc__) && !defined(__KERNEL__) +# define __KERNEL__ +# include +# undef __KERNEL__ +# else +# include +# endif +#else # include -# include typedef u_int32_t __u32; typedef u_int64_t __u64; -# define do_gettimeofday(tv) gettimeofday(tv, NULL) -# ifndef cycles_t -typedef unsigned long cycles_t; -# endif -#endif /* !__KERNEL__ */ +#endif + +#ifdef __KERNEL__ +# include +#else +# include +# define do_gettimeofday(tv) gettimeofday(tv, NULL); +#endif #include diff --git a/lustre/portals/include/portals/types.h b/lustre/portals/include/portals/types.h index ccce5d5..d4ca453 100644 --- a/lustre/portals/include/portals/types.h +++ b/lustre/portals/include/portals/types.h @@ -1,20 +1,27 @@ #ifndef _P30_TYPES_H_ #define _P30_TYPES_H_ -#ifdef __KERNEL__ -# include +#ifdef __linux__ # include -# include -#else /* !__KERNEL__ */ +# if defined(__powerpc__) && !defined(__KERNEL__) +# define __KERNEL__ +# include +# undef __KERNEL__ +# else +# include +# endif +#else # include -# include typedef u_int32_t __u32; typedef u_int64_t __u64; -# define do_gettimeofday(tv) gettimeofday(tv, NULL) -# ifndef cycles_t -typedef unsigned long cycles_t; -# endif -#endif /* !__KERNEL__ */ +#endif + +#ifdef __KERNEL__ +# include +#else +# include +# define do_gettimeofday(tv) gettimeofday(tv, NULL); +#endif #include