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

Commit c97beb8

Browse files
authored
Merge pull request #2244 from ibuclaw/sigeventsize
core.sys.posix.signal: Fix size of sigevent and siginfo_t on 64bit. merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2 parents 5dd7fba + fc140e8 commit c97beb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/sys/posix/signal.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ version( CRuntime_Glibc )
941941

942942
private enum __SI_MAX_SIZE = 128;
943943

944-
static if( false /* __WORDSIZE == 64 */ )
944+
static if( __WORDSIZE == 64 )
945945
{
946946
private enum __SI_PAD_SIZE = ((__SI_MAX_SIZE / int.sizeof) - 4);
947947
}
@@ -1740,7 +1740,7 @@ else version( CRuntime_UClibc )
17401740

17411741
private enum __SI_MAX_SIZE = 128;
17421742

1743-
static if( false /* __WORDSIZE == 64 */ )
1743+
static if( __WORDSIZE == 64 )
17441744
{
17451745
private enum __SI_PAD_SIZE = ((__SI_MAX_SIZE / int.sizeof) - 4);
17461746
}
@@ -3450,7 +3450,7 @@ version( CRuntime_Glibc )
34503450
{
34513451
private enum __SIGEV_MAX_SIZE = 64;
34523452

3453-
static if( false /* __WORDSIZE == 64 */ )
3453+
static if( __WORDSIZE == 64 )
34543454
{
34553455
private enum __SIGEV_PAD_SIZE = ((__SIGEV_MAX_SIZE / int.sizeof) - 4);
34563456
}
@@ -3611,7 +3611,7 @@ else version( CRuntime_UClibc )
36113611
{
36123612
private enum __SIGEV_MAX_SIZE = 64;
36133613

3614-
static if( false /* __WORDSIZE == 64 */ )
3614+
static if( __WORDSIZE == 64 )
36153615
{
36163616
private enum __SIGEV_PAD_SIZE = ((__SIGEV_MAX_SIZE / int.sizeof) - 4);
36173617
}

0 commit comments

Comments
 (0)