$OpenBSD: patch-include_shmlog_h,v 1.2 2013/08/13 10:01:55 dcoppa Exp $

OpenBSD lacks pthread_condattr_setpshared()

--- include/shmlog.h.orig	Wed Aug  7 20:50:24 2013
+++ include/shmlog.h	Mon Aug 12 15:19:02 2013
@@ -12,7 +12,9 @@
 #define I3_I3_SHMLOG_H
 
 #include <stdint.h>
+#if !defined(__OpenBSD__)
 #include <pthread.h>
+#endif
 
 /* Default shmlog size if not set by user. */
 extern const int default_shmlog_size;
@@ -38,10 +40,12 @@ typedef struct i3_shmlog_header {
      * and don’t matter — clients use an equality check (==). */
     uint32_t wrap_count;
 
+#if !defined(__OpenBSD__)
     /* pthread condvar which will be broadcasted whenever there is a new
      * message in the log. i3-dump-log uses this to implement -f (follow, like
      * tail -f) in an efficient way. */
     pthread_cond_t condvar;
+#endif
 } i3_shmlog_header;
 
 #endif
