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