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

Commit 436a0f9

Browse files
committed
fix defs for uclibc
1 parent f6c7453 commit 436a0f9

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/core/sys/linux/sys/eventfd.d

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,28 @@ int eventfd_read (int fd, eventfd_t* value);
4343
/* Increment event counter. */
4444
int eventfd_write (int fd, eventfd_t value);
4545

46-
version (X86_Any)
46+
version (CRuntime_UClibc)
47+
{
48+
version (MIPS_Any)
49+
{
50+
enum EFD_SEMAPHORE = 1;
51+
enum EFD_CLOEXEC = 0x80000; // octal!02000000
52+
enum EFD_NONBLOCK = 0x80; // octal!00000200
53+
}
54+
else version (SPARC_Any)
55+
{
56+
enum EFD_SEMAPHORE = 1;
57+
enum EFD_CLOEXEC = 0x400000;
58+
enum EFD_NONBLOCK = 0x004000;
59+
}
60+
else
61+
{
62+
enum EFD_SEMAPHORE = 1;
63+
enum EFD_CLOEXEC = 0x80000; // octal!02000000
64+
enum EFD_NONBLOCK = 0x800; // octal!00004000
65+
}
66+
}
67+
else version (X86_Any)
4768
{
4869
enum EFD_SEMAPHORE = 1;
4970
enum EFD_CLOEXEC = 0x80000; // octal!2000000

0 commit comments

Comments
 (0)