* gdb_dirent.h: Cleanup and update code to match the example in
the Autoconf manual. * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h, sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS. * configure: Regenerated.
This commit is contained in:
parent
bbcc08074f
commit
9608ab8b2a
4 changed files with 427 additions and 291 deletions
|
@ -1,3 +1,11 @@
|
|||
2002-12-31 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* gdb_dirent.h: Cleanup and update code to match the example in
|
||||
the Autoconf manual.
|
||||
* configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
|
||||
sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
|
||||
* configure: Regenerated.
|
||||
|
||||
2002-12-30 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* objc-exp.y (parse_number): Cast sscanf arguments to proper type.
|
||||
|
|
691
gdb/configure
vendored
691
gdb/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -110,6 +110,7 @@ AC_ARG_PROGRAM
|
|||
|
||||
AC_TYPE_SIGNAL
|
||||
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_STDC
|
||||
|
||||
dnl Solaris 7 needs _MSE_INT_H defined to avoid a clash between <widec.h>
|
||||
|
@ -126,7 +127,7 @@ AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.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/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
|
||||
dirent.h sys/ndir.h sys/dir.h ndir.h sys/filio.h \
|
||||
sys/filio.h \
|
||||
curses.h ncurses.h \
|
||||
poll.h sys/poll.h)
|
||||
AC_HEADER_STAT
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Portable <dirent.h>
|
||||
Copyright 2000 Free Software Foundation, Inc.
|
||||
/* Portable <dirent.h>.
|
||||
Copyright 2000, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
|
@ -18,14 +18,16 @@
|
|||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#if !defined(GDB_DIRENT_H)
|
||||
#define GDB_DIRENT_H
|
||||
|
||||
/* From bfd/hpux-core.c. */
|
||||
#ifndef GDB_DIRENT_H
|
||||
#define GDB_DIRENT_H 1
|
||||
|
||||
/* See description of `AC_HEADER_DIRENT' in the Autoconf manual. */
|
||||
#ifdef HAVE_DIRENT_H
|
||||
# include <dirent.h>
|
||||
# define NAMELEN(dirent) strlen((dirent)->d_name)
|
||||
#else
|
||||
# define dirent direct
|
||||
# define NAMELEN(dirent) (dirent)->d_namelen
|
||||
# ifdef HAVE_SYS_NDIR_H
|
||||
# include <sys/ndir.h>
|
||||
# endif
|
||||
|
@ -37,4 +39,4 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* !defined(GDB_DIRENT_H) */
|
||||
#endif /* not GDB_DIRENT_H */
|
||||
|
|
Loading…
Reference in a new issue