Skip to content

Commit

Permalink
openbsd: define sem_t as optional pointer on opaque {}
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie authored and Vexu committed Dec 25, 2020
1 parent 830bc41 commit bc11528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/std/c/openbsd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ pub const pthread_cond_t = extern struct {
pub const pthread_spinlock_t = extern struct {
inner: ?*c_void = null,
};

pub const pthread_attr_t = extern struct {
inner: ?*c_void = null,
};

pub const sem_t = ?*opaque {};

pub extern "c" fn posix_memalign(memptr: *?*c_void, alignment: usize, size: usize) c_int;

0 comments on commit bc11528

Please sign in to comment.