summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorsr2013-07-17 12:10:01 +0200
committersr2013-07-17 12:10:01 +0200
commit3fd89450610679c6b777767632d2af5751773295 (patch)
treefdf63e0555bba9601f012ad5ce3eff631941bc4f /src/types.h
parentAdd debug-lock functions that will helpt to spot deadlocks etc. while developing (diff)
downloaddnbd3-3fd89450610679c6b777767632d2af5751773295.tar.gz
dnbd3-3fd89450610679c6b777767632d2af5751773295.tar.xz
dnbd3-3fd89450610679c6b777767632d2af5751773295.zip
Replace all pthread_spin_* calls with spin_*, so that all locking can be tracked and debugged
Fix compilation of kernel module
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index 6b074b7..a8d567d 100644
--- a/src/types.h
+++ b/src/types.h
@@ -22,7 +22,9 @@
#define TYPES_H_
#include "config.h"
+#ifndef KERNEL_MODULE
#include <stdint.h>
+#endif
// ioctl
#define DNBD3_MAGIC 'd'