* [RFC/AIX] xm-aix4.h - get rid of #undef fd_set & select #include
@ 2004-08-08 4:26 Joel Brobecker
2004-08-09 18:23 ` Kevin Buettner
0 siblings, 1 reply; 2+ messages in thread
From: Joel Brobecker @ 2004-08-08 4:26 UTC (permalink / raw)
To: gdb-patches; +Cc: Andrew Cagney, Peter Schauer, Kevin Buettner
config/xm-aix4.h contains the following definitions:
| /* The following text is taken from config/rs6000.mh:
| * # The IBM version of /usr/include/rpc/rpc.h has a bug -- it says
| * # `extern fd_set svc_fdset;' without ever defining the type fd_set.
| * # Unfortunately this occurs in the vx-share code, which is not configured
| * # like the rest of GDB (e.g. it doesn't include "defs.h").
| * # We circumvent this bug by #define-ing fd_set here, but undefining it in
| * # the xm-rs6000.h file before ordinary modules try to use it. FIXME, IBM!
| * MH_CFLAGS='-Dfd_set=int'
| * So, here we do the undefine...which has to occur before we include
| * <sys/select.h> below.
| */
| #undef fd_set
|
| #include <sys/select.h>
On our systems (AIX 4.3.2 and 5.1), this type is defined in time.h
typedef struct
#ifdef _ALL_SOURCE
fd_set
#endif /* _ALL_SOURCE */
{
long fds_bits[__NUM_ENTRIES]; /* bitmask for open file descriptors */
} fd_set;
I couldn't find config/rs6000.mh, nor the original comment. So I wonder
if we wouldn't be able to delete these two.
I can give it a try, but would I miss something?
--
Joel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC/AIX] xm-aix4.h - get rid of #undef fd_set & select #include
2004-08-08 4:26 [RFC/AIX] xm-aix4.h - get rid of #undef fd_set & select #include Joel Brobecker
@ 2004-08-09 18:23 ` Kevin Buettner
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2004-08-09 18:23 UTC (permalink / raw)
To: gdb-patches
On Sat, 7 Aug 2004 21:26:01 -0700
Joel Brobecker <brobecker@gnat.com> wrote:
> config/xm-aix4.h contains the following definitions:
>
> | /* The following text is taken from config/rs6000.mh:
> | * # The IBM version of /usr/include/rpc/rpc.h has a bug -- it says
> | * # `extern fd_set svc_fdset;' without ever defining the type fd_set.
> | * # Unfortunately this occurs in the vx-share code, which is not configured
> | * # like the rest of GDB (e.g. it doesn't include "defs.h").
> | * # We circumvent this bug by #define-ing fd_set here, but undefining it in
> | * # the xm-rs6000.h file before ordinary modules try to use it. FIXME, IBM!
> | * MH_CFLAGS='-Dfd_set=int'
> | * So, here we do the undefine...which has to occur before we include
> | * <sys/select.h> below.
> | */
> | #undef fd_set
> |
> | #include <sys/select.h>
>
> On our systems (AIX 4.3.2 and 5.1), this type is defined in time.h
>
> typedef struct
> #ifdef _ALL_SOURCE
> fd_set
> #endif /* _ALL_SOURCE */
> {
> long fds_bits[__NUM_ENTRIES]; /* bitmask for open file descriptors */
> } fd_set;
>
> I couldn't find config/rs6000.mh, nor the original comment. So I wonder
> if we wouldn't be able to delete these two.
>
> I can give it a try, but would I miss something?
I'm all in favor of giving it a try. I suspect that the the above was
intended as a workaround for a much older version of AIX. (FWIW, I
can't find the original comment either, but the xm-aix4.h comment and
associated hackery was added in 1996.)
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-09 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-08 4:26 [RFC/AIX] xm-aix4.h - get rid of #undef fd_set & select #include Joel Brobecker
2004-08-09 18:23 ` Kevin Buettner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox