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