]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
spinlock: avoid lockdep include unless lockdep is on
authorSage Weil <sage@newdream.net>
Thu, 8 Apr 2010 14:43:23 +0000 (07:43 -0700)
committerSage Weil <sage@newdream.net>
Thu, 8 Apr 2010 14:43:23 +0000 (07:43 -0700)
src/common/Spinlock.h

index 1b9cc773316fae9ef14ab7478b0ffa4d2f58e294..3bd83c49f0822a1c9f62a07930363f731fb36c5c 100644 (file)
 
 #include <pthread.h>
 #include "include/assert.h"
-#include "lockdep.h"
 
 //#define SPINLOCK_LOCKDEP
 
+#ifdef SPINLOCK_LOCKDEP
+# include "lockdep.h"
+#endif
+
 class Spinlock {
 private:
   pthread_spinlock_t _s;