oslib-posix.c: Move workaround for OSX daemon() deprecation to osdep.h
commitd5db2ec1774642db7febda0fba1cb3d0b9ef7236
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Feb 2016 19:08:10 +0000 (8 19:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Feb 2016 14:29:28 +0000 (16 14:29 +0000)
tree29ab4ec555b149b29a2b0e96e04f0badee0181d4
parentc964b660223308150bb72c627b320c79372c7128
oslib-posix.c: Move workaround for OSX daemon() deprecation to osdep.h

The right place for "work around issues with system headers" code
is osdep.h. Move the workaround for OSX's stdlib.h emitting a
deprecation warning for daemon() to that header.

This also fixes a problem where running clean-includes on
oslib-posix.c would erroneously remove the #include <stdlib.h>
from it, breaking the workaround.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/qemu/osdep.h
util/oslib-posix.c