projects
/
archipelago
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e602902
)
Add compilation warning about MT and ST_THREADS
author
Filippos Giannakos
<philipgian@grnet.gr>
Thu, 14 Mar 2013 11:41:24 +0000
(13:41 +0200)
committer
Filippos Giannakos
<philipgian@grnet.gr>
Thu, 14 Mar 2013 16:00:21 +0000
(18:00 +0200)
xseg/peers/user/peer.c
patch
|
blob
|
history
diff --git
a/xseg/peers/user/peer.c
b/xseg/peers/user/peer.c
index
7212865
..
c0a0dd5
100644
(file)
--- a/
xseg/peers/user/peer.c
+++ b/
xseg/peers/user/peer.c
@@
-51,6
+51,12
@@
#include <peer.h>
#ifdef MT
+#ifdef ST_THREADS
+#error "MT and ST_THREADS defines are mutually exclusive"
+#endif
+#endif
+
+#ifdef MT
#define PEER_TYPE "pthread"
#else
#define PEER_TYPE "posix"