Re: Where to put new header file
Jeffrey E Altman <[email protected]>
| Newsgroups | gmane.comp.file-systems.openafs.devel |
|---|---|
| Organization | AuriStor, Inc. |
| Message-ID | <[email protected]> |
On 1/30/2023 6:33 PM, Ben Huntsman ([email protected]) wrote: > src/rx/AIX/rx_knet.c includes <net/netisr.h>. However, on AIX 7.3 IBM > added an include to <sys/libsysp.h> which they don't ship (it's not > listed in bos.content_list). Here's the relevant section: > > ... > #ifdef _KERNEL > > #ifdef _AIX_FULLOSF > #include "kern/queue.h" > #include "kern/thread.h" > #include "kern/sched_prim.h" > #else > #define EVENT_NETISR 0x0726 > #include <sys/libsysp.h> /* remque/insque */ > #endif > ... > > The only difference from earlier versions of AIX is the #include > <sys/libsysp.h>. As you can see, there's no real way to use macros to > escape from it. However, we don't really need anything in it for > OpenAFS, so my proposal would be to just create an empty sys/libsysp.h > file within the OpenAFS source tree. It would only be picked up by > AIX 7.3 builds. I tested this and it allows the compile to continue. > The question though is, where in the tree should such file live? > > I would also welcome alternative suggestions. Ben, If IBM fails to ship a header that would appear to be a bug that should be reported to them. However, I wonder if their expectation is that _AIX_FULLOSF is supposed to be defined. Under what conditions is _AIX_FULLOSF defined? Jeffrey Altman
smime.p7s
(application/pkcs7-signature, 3.9 KB) - not displayed