Isn't there some #ifdef IRIX which could be used ?
Yes. The standard clause is
#ifdef (__mips__)
but I think the problem is more general: how many architectures are there out there not supporting
long options in getopt? Quckly the clause will become something like
#if defined (__mips__) || defined (__hpux__) || defined(_some_other_exotic_unix_flavor__) || ...
only to fix a little bit more than two lines of code. There is a similar situation in
php_syntree.h and PRIu64: you have to check if PRIu64 is defined or not an then
tell if the CPU is a 32- or 64-bit. My proposed patch heavily relies on MIPS/IRIX and
I think is qute dangerous and not satisfacting as well.
It's worth to check all the unices for just two lines? So I think the best solution is to
leave the original code untouched and write a wiki-HOWTO explaining the modifications, maybe
with a patchfile along with the final distribution. IMHO.
My one cent and a half.
Cheers
--
Gaznevada