]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build under 32bit
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 22 Aug 2007 18:32:47 +0000 (18:32 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 22 Aug 2007 18:32:47 +0000 (18:32 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1655 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/fusetrace/Makefile
trunk/fusetrace/fusetrace_ll.cc

index c22221e583a18114840b1505c85acba693af6a7e..4fd6ed316ea5a6d441ad8cb3670dba8e0f7c73dd 100644 (file)
@@ -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 $@
index 08a17d83b9a7e246b6066bc512440e64603e66c8..457849470bbaefcb9622dc094c8725d6a6b228d5 100644 (file)
 #include <ext/hash_map>
 using namespace __gnu_cxx;
 
+#ifndef __LP64__
+namespace __gnu_cxx {
+  template<> struct hash<uint64_t> {
+    size_t operator()(uint64_t __x) const { 
+      static hash<uint32_t> H;
+      return H((__x >> 32) ^ (__x & 0xffffffff)); 
+    }
+  };
+}
+#endif
+
+
 #include <iostream>
 #include <fstream>
 #include <map>