Skip to content

Commit cb28fa9

Browse files
committed
const: add RWF_NOAPPEND check, if it does not exist set it to 0
1 parent a5e514c commit cb28fa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/liburing/const.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub const RWF_DSYNC = c.RWF_DSYNC;
8686
pub const RWF_HIPRI = c.RWF_HIPRI;
8787
pub const RWF_NOWAIT = c.RWF_NOWAIT;
8888
pub const RWF_SYNC = c.RWF_SYNC;
89-
pub const RWF_NOAPPEND = c.RWF_NOAPPEND;
89+
pub const RWF_NOAPPEND = if (@hasDecl(c, "RWF_NOAPPEND")) c.RWF_NOAPPEND else 0;
9090
pub const RWF_ATOMIC = c.RWF_ATOMIC;
9191

9292
// oz.constant("HELLO", if (@hasDecl(c, "IO_URING_VERSION_MAJOR")) c.IO_URING_VERSION_MAJOR else 0),

0 commit comments

Comments
 (0)