]> git.sur5r.net Git - ngadmin/blobdiff - lib/src/list.h
Added chained makefiles.
[ngadmin] / lib / src / list.h
index 39a17513c444488826abc8154eac235370d0e27d..3eaf2ba78e67bddfecf01085731a37d369c1e8f3 100644 (file)
@@ -6,8 +6,10 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <string.h>
-#include <pthread.h>
 
+#ifdef MT_SAFE_LIST
+#include <pthread.h>
+#endif
 
 
 
@@ -22,8 +24,10 @@ struct ListNode {
 typedef struct {
  ListNode *first, *last;
  unsigned int count;
+ #ifdef MT_SAFE_LIST
  pthread_cond_t cond;
  pthread_mutex_t mutex;
+ #endif
 } List;