X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fshmlog.h;h=b90211ef1a9ca5a612e71a3028eb65f984fb77ab;hb=f354f534357798eb3ba497b7143132f41ff090f6;hp=231681cab591d012bef2ca9075eb206c7bb6f923;hpb=d9ca3e4274e117f6270d8f3b5b99a97073749b42;p=i3%2Fi3 diff --git a/include/shmlog.h b/include/shmlog.h index 231681ca..b90211ef 100644 --- a/include/shmlog.h +++ b/include/shmlog.h @@ -10,8 +10,12 @@ */ #pragma once +#include + #include +#if !defined(__OpenBSD__) #include +#endif /* Default shmlog size if not set by user. */ extern const int default_shmlog_size; @@ -24,7 +28,7 @@ typedef struct i3_shmlog_header { /* Byte offset where the next line will be written to. */ uint32_t offset_next_write; - /* Byte offset where the last wrap occured. */ + /* Byte offset where the last wrap occurred. */ uint32_t offset_last_wrap; /* The size of the logfile in bytes. Since the size is limited to 25 MiB @@ -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;