Re: autoconf test for deprecated readdir_r

2016-07-02 Thread Sérgio Basto
On Qui, 2016-06-30 at 17:42 +0200, Florian Weimer wrote: > On 06/30/2016 05:38 PM, Zdenek Kabelac wrote: > > > > > Cut & paste example code solution from lvm2: > > > > #if !defined(__GLIBC__) || (__GLIBC__ < 2) || ((__GLIBC__ == 2) && > > (__GLIBC_MINOR__ < 23)) > > /* readdir_r is

Re: autoconf test for deprecated readdir_r

2016-06-30 Thread Daniel P. Berrange
On Thu, Jun 30, 2016 at 11:30:38AM -0400, Kaleb KEITHLEY wrote: > > Hi, > > Does anyone have a good/working autoconf test for checking for > deprecated readdir_r (for Fedora 25) ? > > I'm not having much luck. (Have tried AC_COMPILE_IFELSE, among other > things.) > > Alternatively it would be

Re: autoconf test for deprecated readdir_r

2016-06-30 Thread Florian Weimer
On 06/30/2016 05:38 PM, Zdenek Kabelac wrote: Cut & paste example code solution from lvm2: #if !defined(__GLIBC__) || (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 23)) /* readdir_r is deprecated with newer GLIBC */ struct dirent entry, *iter = 0; while ( (errno =

Re: autoconf test for deprecated readdir_r

2016-06-30 Thread Zdenek Kabelac
Dne 30.6.2016 v 17:30 Kaleb KEITHLEY napsal(a): Hi, Does anyone have a good/working autoconf test for checking for deprecated readdir_r (for Fedora 25) ? I'm not having much luck. (Have tried AC_COMPILE_IFELSE, among other things.) Alternatively it would be nice if there was a some kind of

autoconf test for deprecated readdir_r

2016-06-30 Thread Kaleb KEITHLEY
Hi, Does anyone have a good/working autoconf test for checking for deprecated readdir_r (for Fedora 25) ? I'm not having much luck. (Have tried AC_COMPILE_IFELSE, among other things.) Alternatively it would be nice if there was a some kind of feature test define in dirent.h. Thanks, --