Hello,
I met a compilation error with GDB-5.0 on
i586-pc-linux-gnulibc1. That is because "gdb-5.0/gdb/event-loop.c"
includes <poll.h> but the header file doesn't exist in libc5. Instead,
it has <sys/poll.h>. Thus, I wrote this patch below. You need to run
autoheader and autoconf after applying it.
diff -crN gdb-5.0.orig/gdb/configure.in gdb-5.0/gdb/configure.in
*** gdb-5.0.orig/gdb/configure.in Mon Jun 12 19:14:57 2000
--- gdb-5.0/gdb/configure.in Mon Jun 12 19:15:32 2000
***************
*** 102,108 ****
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
! time.h sys/ioctl.h sys/user.h)
AC_HEADER_STAT
AC_C_CONST
--- 102,108 ----
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
! time.h sys/ioctl.h sys/user.h sys/poll.h)
AC_HEADER_STAT
AC_C_CONST
diff -crN gdb-5.0.orig/gdb/event-loop.c gdb-5.0/gdb/event-loop.c
*** gdb-5.0.orig/gdb/event-loop.c Mon Jun 12 19:15:10 2000
--- gdb-5.0/gdb/event-loop.c Mon Jun 12 19:15:26 2000
***************
*** 24,30 ****
--- 24,34 ----
#include "event-loop.h"
#include "event-top.h"
#ifdef HAVE_POLL
+ #ifdef HAVE_SYS_POLL_H
+ #include <sys/poll.h>
+ #else
#include <poll.h>
+ #endif
#endif
#include <sys/types.h>
#include <string.h>
Here is the corresponding ChangeLog entry:
2000-06-12 OKUJI Yoshinori <[EMAIL PROTECTED]>
* configure.in (AC_CHECK_HEADERS): Check for sys/poll.h.
* event-loop.c [HAVE_POLL && HAVE_SYS_POLL_H]: Include
<sys/poll.h> instead of <poll.h>.
Thanks,
Okuji