RFR(S): 8171906: Changes for 8148023 break AIX build
christoph.langer at sap.com
Thu Dec 22 15:03:46 UTC 2016
after the fix for 8148023 was pushed, the AIX build is broken. Please review a fix for this:
The build breaks because NAME_MAX is not defined on AIX (just like Solaris, I guess) and we have to define it in UnixFileSystem_md.c.
When working on this fix, I spotted some compiler warnings indicating that if one is working with the APIs readdir64 and friends on AIX, one has to use the type DIR64 instead of DIR and to open/close with opendir64/closedir64. I guess that's specific to AIX, see IBM's documentation .
Furthermore, although fdopendir64 is not mentioned there but just fdopendir, both APIs exist from AIX 7.1 onwards (look at <sys/dir.h> on an AIX 7.1). So I added some defines for AIX to redirect the API calls.
Thanks and best regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev