[37e1b7]: utils / benchmark / ebizzy-0.3 / ebizzy.h  Maximize  Restore  History

Download this file

35 lines (26 with data), 543 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* 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 */

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks