On AIX, in most cases defining _ALL_SOURCE is the right thing to do. But occasionally it isn't.
This gets sticky because in some cases _ALL_SOURCE is the only feature test macro that causes some things to be defined that we definitely don't want, as is the case with libdiskfs, acme, etc. In other cases, such as parts of lib9, it's the only feature test macro that defines some things we need in netinet/in.h. I wasn't able to find a good solution that fits both use cases. I'm open to suggestions for alternatives.
On AIX, in most cases defining _ALL_SOURCE is the right thing to do. But occasionally it isn't. This gets sticky because in some cases _ALL_SOURCE is the only feature test macro that causes some things to be defined that we definitely don't want, as is the case with libdiskfs, acme, etc. In other cases, such as parts of lib9, it's the only feature test macro that defines some things we need in netinet/in.h. I wasn't able to find a good solution that fits both use cases. I'm open to suggestions for alternatives.