Re: [Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-04 Thread Blue Swirl
On Thu, Jun 2, 2011 at 5:45 AM, Alexandre Raymond cerb...@gmail.com wrote: On OSX 10.5, daemon() is deprecated, resulting int he following warning: 8 qemu-nbd.c: In function ‘main’: qemu-nbd.c:371: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:289) 8

Re: [Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-02 Thread Andreas Färber
Am 02.06.2011 um 04:45 schrieb Alexandre Raymond: On OSX 10.5, daemon() is deprecated, resulting int he following warning: = 10.5 http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ ManPages/man3/daemon.3.html 8 qemu-nbd.c: In function ‘main’:

Re: [Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-02 Thread Peter Maydell
On 2 June 2011 03:45, Alexandre Raymond cerb...@gmail.com wrote: The following trick, used in mDNSResponder, takes care of this warning: http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-258.18/mDNSPosix/PosixDaemon.c If we do decide to borrow this trick from there, can we

Re: [Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-02 Thread Alexandre Raymond
Hi Andreas, On Thu, Jun 2, 2011 at 8:09 AM, Andreas Färber andreas.faer...@web.de wrote: Am 02.06.2011 um 04:45 schrieb Alexandre Raymond: On OSX 10.5, daemon() is deprecated, resulting int he following warning: = 10.5

[Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-01 Thread Alexandre Raymond
On OSX 10.5, daemon() is deprecated, resulting int he following warning: 8 qemu-nbd.c: In function ‘main’: qemu-nbd.c:371: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:289) 8 The following trick, used in mDNSResponder, takes care of this warning: