This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] gdb/configure: Add check for sys/proc.h


This is in preparation for some later patches porting GDB to
i386-interix: when compiling proc-api.c, we try to include <sys/proc.h>
but this header file does not exist. I haven't checked this myself,
but I trust that the definitions that proc-api was needing from this
file will be found elsewhere. So I would like to conditionalize the
inclusion of this file using the HAVE_SYS_PROC_H macro. The following
patch introduces this macro.

2002-07-05  Joel Brobecker  <brobecker@gnat.com>

        Define HAVE_SYS_PROC_H if sys/proc.h exists
        * configure.in: Add check for sys/proc.h
        * config.in: Regenerate.
        * configure: Regenerate.

This patch has been tested on x86-linux (no sys/proc.h), and on
sparc-solaris (have sys/proc.h).

Ok to commit?
Yes. In general, any developer ``brave enough'' can commit changes to configure.in. Just post them first for comment.

Can you just check that you're using the BINUTILS 000227 autoconf. I'm asking as I noticed:

***************
*** 379,392 ****
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
- /* Define if you have the <sys/stat.h> header file. */
- #undef HAVE_SYS_STAT_H
- /* Define if you have the <sys/syscall.h> header file. */
#undef HAVE_SYS_SYSCALL_H
- - /* Define if you have the <sys/types.h> header file. */
- #undef HAVE_SYS_TYPES_H
/* Define if you have the <sys/user.h> header file. */
#undef HAVE_SYS_USER_H
which has me puzzled. I suspect it might just be that config.in is out-of-datem dig dig. Yep :-/

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]