]> git.sur5r.net Git - i3/i3/blobdiff - include/shmlog.h
Merge pull request #3313 from czak/fix-border-artifacts
[i3/i3] / include / shmlog.h
index 01fea8b457c7493d4cd0dfef6705406883646fe2..b90211ef1a9ca5a612e71a3028eb65f984fb77ab 100644 (file)
  */
 #pragma once
 
+#include <config.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;
@@ -37,8 +41,10 @@ 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;