summaryrefslogtreecommitdiffstats
path: root/src/shared/fdsignal.c
blob: 087b6f10069bdf5e8c87ff54af69fb5b9e92ad7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "fdsignal.h"

#if defined(__linux__)
//#warning "Using eventfd based signalling"
#include "fdsignal.inc/eventfd.c"
#elif __SIZEOF_INT__ == 4 && __SIZEOF_POINTER__ == 8
//#warning "Using pointer-packing pipe based signalling"
#include "fdsignal.inc/pipe64.c"
#else
_Static_assert( sizeof(int) != 4 || sizeof(void*) != 8, "Something's goofy, fix preprocessor check above!" );
//#warning "Using fallback pipe based signalling"
#include "fdsignal.inc/pipe_malloc.c"
#endif