Revision 71e72a19 osdep.c
b/osdep.c | ||
---|---|---|
36 | 36 |
/* FIXME: This file should be target independent. However it has kqemu |
37 | 37 |
hacks, so must be built for every target. */ |
38 | 38 |
|
39 |
/* Needed early for HOST_BSD etc. */
|
|
39 |
/* Needed early for CONFIG_BSD etc. */
|
|
40 | 40 |
#include "config-host.h" |
41 | 41 |
|
42 | 42 |
#ifdef _WIN32 |
43 | 43 |
#include <windows.h> |
44 |
#elif defined(HOST_BSD)
|
|
44 |
#elif defined(CONFIG_BSD)
|
|
45 | 45 |
#include <stdlib.h> |
46 | 46 |
#else |
47 | 47 |
#include <malloc.h> |
... | ... | |
210 | 210 |
if (ret != 0) |
211 | 211 |
abort(); |
212 | 212 |
return ptr; |
213 |
#elif defined(HOST_BSD)
|
|
213 |
#elif defined(CONFIG_BSD)
|
|
214 | 214 |
return oom_check(valloc(size)); |
215 | 215 |
#else |
216 | 216 |
return oom_check(memalign(alignment, size)); |
Also available in: Unified diff