[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: http://w

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’: qemu-nbd.c:3

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 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 also borrow some eq

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 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 > > http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3

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 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< > > The fol