From 0d97e15a177968542d403e67cab0a21bf4f03c73 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 25 Jul 2005 23:55:57 +0000 Subject: [PATCH] b=6663 adding lvfs_mount, begin changes to llite_lib.c --- lnet/include/libcfs/kp30.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnet/include/libcfs/kp30.h b/lnet/include/libcfs/kp30.h index 79434c3..8c3337e 100644 --- a/lnet/include/libcfs/kp30.h +++ b/lnet/include/libcfs/kp30.h @@ -149,8 +149,8 @@ extern struct prof_ent prof_ents[MAX_PROFS]; #define PROF_FINISH(FOO) do {} while(0) #endif /* PORTALS_PROFILING */ -/* htonl hack - either this, or compile with -O2 */ -#if defined(__GNUC__) && (__GNUC__ >= 2) +/* htonl hack - either this, or compile with -O2. Stupid byteorder/generic.h */ +#if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__OPTIMIZE__) #define ___htonl(x) __cpu_to_be32(x) #define ___htons(x) __cpu_to_be16(x) #define ___ntohl(x) __be32_to_cpu(x) -- 1.8.3.1