Re: Fix compilation on Solaris 10

2019-02-28 Thread Chet Ramey
On 2/28/19 10:21 AM, Eric Blake wrote: > On 2/28/19 7:38 AM, co...@sdf.org wrote: >> Hi folks, >> >> in Solaris 10 apparently O_CLOEXEC is not defined. >> (got a bug report in http://gnats.netbsd.org/54025) >> >> Attached is a patch wrapping the code using it in #ifdef O_CLOEXEC. > > Incomplete -

Re: Fix compilation on Solaris 10

2019-02-28 Thread Eric Blake
On 2/28/19 7:38 AM, co...@sdf.org wrote: > Hi folks, > > in Solaris 10 apparently O_CLOEXEC is not defined. > (got a bug report in http://gnats.netbsd.org/54025) > > Attached is a patch wrapping the code using it in #ifdef O_CLOEXEC. Incomplete - if you are unable to atomically set the CLOEXEC f

Re: Fix compilation on Solaris 10

2019-02-28 Thread Chet Ramey
On 2/28/19 8:38 AM, co...@sdf.org wrote: > Hi folks, > > in Solaris 10 apparently O_CLOEXEC is not defined. > (got a bug report in http://gnats.netbsd.org/54025) > > Attached is a patch wrapping the code using it in #ifdef O_CLOEXEC. Thanks for the report. This was fixed in the devel branch a fe

Fix compilation on Solaris 10

2019-02-28 Thread coypu
Hi folks, in Solaris 10 apparently O_CLOEXEC is not defined. (got a bug report in http://gnats.netbsd.org/54025) Attached is a patch wrapping the code using it in #ifdef O_CLOEXEC. thanks. >From e9d262e43c6d4ada77f1b722f352fb55a4107ec0 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Thu, 28 F