-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 $@
#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>