Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ec0a244

Browse files
ibuclawn8sh
authored andcommitted
core.sys.posix.signal: Add struct sigevent for Darwin
1 parent 197b65c commit ec0a244

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/core/sys/posix/aio.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ else version (OSX)
6969
{
7070
int aio_filedes;
7171
off_t aio_offset;
72-
void* aio_buf;
72+
void* aio_buf; // volatile
7373
size_t aio_nbytes;
7474
int reqprio;
7575
sigevent aio_sigevent;

src/core/sys/posix/signal.d

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3552,6 +3552,14 @@ else version (DragonFlyBSD)
35523552
}
35533553
else version (Darwin)
35543554
{
3555+
struct sigevent
3556+
{
3557+
int sigev_notify;
3558+
int sigev_signo;
3559+
sigval sigev_value;
3560+
void function(sigval) sigev_notify_function;
3561+
pthread_attr_t* sigev_notify_attributes;
3562+
}
35553563
}
35563564
else version (Solaris)
35573565
{

0 commit comments

Comments
 (0)