android13/external/ltp/utils/benchmark/ebizzy-0.3/ebizzy.h

35 lines
543 B
C

/* Portability stuff */
#ifndef EBIZZY_H
#define EBIZZY_H
#ifndef _freebsd
#include <malloc.h>
#endif
/*
* Solaris and FreeBSD compatibility stuff
*/
#if defined(_solaris) || defined(_freebsd)
#define MAP_ANONYMOUS MAP_ANON
#define M_MMAP_MAX (-4)
#endif
/*
* FreeBSD compatibility stuff
*/
#if defined(_freebsd) || defined(__UCLIBC__)
#define mallopt(arg1, arg2) do { } while (0);
#endif
/*
* HP-UX compatibility stuff
*/
#ifdef _HPUX_SOURCE
#define _SC_NPROCESSORS_ONLN pthread_num_processors_np()
#endif
#endif /* EBIZZY_H */