Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-16 Thread William A Rowe Jr
On Fri, Mar 15, 2019 at 7:04 PM Jim Jagielski wrote: > macOS is not truly BSD... it's mach and so while there are a lot of > similarities, one cannot equate the 2... this just may be one of those > areas where macOS/Mach != BSD > That's true.The point I raised is that without DARWIN defines,

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-15 Thread Jim Jagielski
macOS is not truly BSD... it's mach and so while there are a lot of similarities, one cannot equate the 2... this just may be one of those areas where macOS/Mach != BSD > On Mar 15, 2019, at 2:39 PM, William A Rowe Jr wrote: > > That's outstanding, thanks again for sharing your config! Thanks

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-15 Thread wuzhouhui
> On Mar 15, 2019, at 8:02 AM, Jim Jagielski wrote: > > Yeppers. It's because gcc for Homebrew still sets DARWIN automatically > whereas for clang (Xcode), the canon macro is now __APPLE__ > > I've updated all APR's to be aware of __APPLE__ and, if set, it auto defines > DARWIN and

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-14 Thread wuzhouhui
> On Mar 15, 2019, at 5:44 AM, William A Rowe Jr wrote: > > Jim, Stefan, wuzhouhui... > > On Wed, Mar 13, 2019 at 3:13 PM Jim Jagielski wrote: > > > > FWIW, I have apr-1.6 here and cannot confirm the below. When compiling w/ > > httpd, DARWIN_10 is defined as required. > > > > > On Mar 3,

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-14 Thread Jim Jagielski
Yeppers. It's because gcc for Homebrew still sets DARWIN automatically whereas for clang (Xcode), the canon macro is now __APPLE__ I've updated all APR's to be aware of __APPLE__ and, if set, it auto defines DARWIN and DARWIN_10 in apr.h This should fix the issues w/ all compilers. Thx for

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-14 Thread Jim Jagielski
I think what is going on is that Apple recently changed from using the DARWIN pre-defined macro to the __APPLE__. No doubt, this is causing issues if one doesn't include the right *.h files. Let me address this. > On Mar 14, 2019, at 5:44 PM, William A Rowe Jr wrote: > > Jim, Stefan,

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-14 Thread William A Rowe Jr
Jim, Stefan, wuzhouhui... On Wed, Mar 13, 2019 at 3:13 PM Jim Jagielski wrote: > > FWIW, I have apr-1.6 here and cannot confirm the below. When compiling w/ httpd, DARWIN_10 is defined as required. > > > On Mar 3, 2019, at 9:26 AM, wuzhouhui wrote: > > > > ~/Downloads/apr-1.6.5$ gcc -I./include

Re: Wrong definition of APR_OFF_T_FMT in apr.h

2019-03-13 Thread Jim Jagielski
FWIW, I have apr-1.6 here and cannot confirm the below. When compiling w/ httpd, DARWIN_10 is defined as required. > On Mar 3, 2019, at 9:26 AM, wuzhouhui wrote: > > Hi, > > I found a compile warning in APR, following is a C program that will > report warning when compiled in my system: > >