Revision f97742d0 oslib-posix.c
b/oslib-posix.c | ||
---|---|---|
26 | 26 |
* THE SOFTWARE. |
27 | 27 |
*/ |
28 | 28 |
|
29 |
/* The following block of code temporarily renames the daemon() function so the |
|
30 |
compiler does not see the warning associated with it in stdlib.h on OSX */ |
|
31 |
#ifdef __APPLE__ |
|
32 |
#define daemon qemu_fake_daemon_function |
|
33 |
#include <stdlib.h> |
|
34 |
#undef daemon |
|
35 |
extern int daemon(int, int); |
|
36 |
#endif |
|
37 |
|
|
29 | 38 |
#include "config-host.h" |
30 | 39 |
#include "sysemu.h" |
31 | 40 |
#include "trace.h" |
32 | 41 |
#include "qemu_socket.h" |
33 | 42 |
|
43 |
|
|
44 |
|
|
45 |
int qemu_daemon(int nochdir, int noclose) |
|
46 |
{ |
|
47 |
return daemon(nochdir, noclose); |
|
48 |
} |
|
49 |
|
|
34 | 50 |
void *qemu_oom_check(void *ptr) |
35 | 51 |
{ |
36 | 52 |
if (ptr == NULL) { |
Also available in: Unified diff