summaryrefslogblamecommitdiffstats
path: root/src/shared/fdsignal.c
blob: 5e5cf7f48a29a7683c9b79787ad44d7967ba5608 (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
 
                                                            
                                           
                                 
                                                    
                                                        
                                
     
                                                                                                             
                                                 
                                     
      
 
#include "fdsignal.h"

#if defined(linux) || defined(__linux) || 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