From 6c2c8bd57373bd6237ba3df8f46dae635b363d59 Mon Sep 17 00:00:00 2001 From: sageweil Date: Wed, 22 Aug 2007 18:32:47 +0000 Subject: [PATCH] build under 32bit git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1655 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/fusetrace/Makefile | 4 ++-- trunk/fusetrace/fusetrace_ll.cc | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/trunk/fusetrace/Makefile b/trunk/fusetrace/Makefile index c22221e583a18..4fd6ed316ea5a 100644 --- a/trunk/fusetrace/Makefile +++ b/trunk/fusetrace/Makefile @@ -1,7 +1,7 @@ -CFLAGS = -g -I../ceph -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE +CFLAGS = -g -I../ceph -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I$(HOME)/include -L$(HOME)/lib LIBS = -lfuse CC = g++ fusetrace_ll: fusetrace_ll.cc - $(CC) $(CFLAGS) $(LIBS) $^ -o $@ \ No newline at end of file + $(CC) $(CFLAGS) $(LIBS) $^ -o $@ diff --git a/trunk/fusetrace/fusetrace_ll.cc b/trunk/fusetrace/fusetrace_ll.cc index 08a17d83b9a7e..457849470bbae 100644 --- a/trunk/fusetrace/fusetrace_ll.cc +++ b/trunk/fusetrace/fusetrace_ll.cc @@ -35,6 +35,18 @@ #include using namespace __gnu_cxx; +#ifndef __LP64__ +namespace __gnu_cxx { + template<> struct hash { + size_t operator()(uint64_t __x) const { + static hash H; + return H((__x >> 32) ^ (__x & 0xffffffff)); + } + }; +} +#endif + + #include #include #include -- 2.39.5