Home | History | Annotate | Download | only in ebizzy-0.3
      1 /* Portability stuff */
      2 
      3 #ifndef EBIZZY_H
      4 #define EBIZZY_H
      5 
      6 #ifndef _freebsd
      7 #include <malloc.h>
      8 #endif
      9 
     10 /*
     11  * Solaris and FreeBSD compatibility stuff
     12  */
     13 #if defined(_solaris) || defined(_freebsd)
     14 #define	MAP_ANONYMOUS	MAP_ANON
     15 #define	M_MMAP_MAX	(-4)
     16 #endif
     17 
     18 /*
     19  * FreeBSD compatibility stuff
     20  */
     21 #if defined(_freebsd) || defined(__UCLIBC__)
     22 #define mallopt(arg1, arg2) do { } while (0);
     23 #endif
     24 
     25 /*
     26  * HP-UX compatibility stuff
     27  */
     28 #ifdef _HPUX_SOURCE
     29 #define _SC_NPROCESSORS_ONLN pthread_num_processors_np()
     30 #endif
     31 
     32 
     33 
     34 #endif /* EBIZZY_H */
     35