* 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:
Mark Kettenis 2002-12-31 12:41:00 +00:00
parent bbcc08074f
commit 9608ab8b2a
4 changed files with 427 additions and 291 deletions

View file

@ -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> 2002-12-30 Adam Fedor <fedor@gnu.org>
* objc-exp.y (parse_number): Cast sscanf arguments to proper type. * objc-exp.y (parse_number): Cast sscanf arguments to proper type.

691
gdb/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -110,6 +110,7 @@ AC_ARG_PROGRAM
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_HEADER_DIRENT
AC_HEADER_STDC AC_HEADER_STDC
dnl Solaris 7 needs _MSE_INT_H defined to avoid a clash between <widec.h> 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 \ 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 \ 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 \ 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 \ curses.h ncurses.h \
poll.h sys/poll.h) poll.h sys/poll.h)
AC_HEADER_STAT AC_HEADER_STAT

View file

@ -1,5 +1,5 @@
/* Portable <dirent.h> /* Portable <dirent.h>.
Copyright 2000 Free Software Foundation, Inc. Copyright 2000, 2002 Free Software Foundation, Inc.
This file is part of GDB. This file is part of GDB.
@ -18,14 +18,16 @@
Foundation, Inc., 59 Temple Place - Suite 330, Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#if !defined(GDB_DIRENT_H) #ifndef GDB_DIRENT_H
#define GDB_DIRENT_H #define GDB_DIRENT_H 1
/* From bfd/hpux-core.c. */
/* See description of `AC_HEADER_DIRENT' in the Autoconf manual. */
#ifdef HAVE_DIRENT_H #ifdef HAVE_DIRENT_H
# include <dirent.h> # include <dirent.h>
# define NAMELEN(dirent) strlen((dirent)->d_name)
#else #else
# define dirent direct
# define NAMELEN(dirent) (dirent)->d_namelen
# ifdef HAVE_SYS_NDIR_H # ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h> # include <sys/ndir.h>
# endif # endif
@ -37,4 +39,4 @@
# endif # endif
#endif #endif
#endif /* !defined(GDB_DIRENT_H) */ #endif /* not GDB_DIRENT_H */