Commit 962fe395 by Nick Clifton Committed by Nick Clifton

configure.ac (AC_CHECK_HEADERS): Add dirent.h configure: Regenerate.

configure.ac (AC_CHECK_HEADERS): Add dirent.h
configure: Regenerate.
mf-hooks2.c: Surround uses of dirent.h with #ifdef HAVE_DIRENT_H.
  Remove spurious inclusion of <strings.h>.

From-SVN: r83850
parent 313329e1
2004-06-29 Nick Clifton <nickc@redhat.com>
* configure.ac (AC_CHECK_HEADERS): Add dirent.h
* configure: Regenerate.
* mf-hooks2.c: Surround uses of dirent.h with #ifdef
HAVE_DIRENT_H.
Remove spurious inclusion of <strings.h>.
2004-06-29 Nick Clifton <nickc@redhat.com>
* mf-runtime.c (pthread_join): Only apply the weak pragma if the
function actually exists.
2004-06-25 Frank Ch. Eigler <fche@redhat.com>
* ansidecl.h, libiberty.h: New dummy files for building splay-tree.
......
......@@ -63,7 +63,7 @@ AC_TRY_COMPILE([
[AC_MSG_RESULT(no)
enable_shared=no])
AC_CHECK_HEADERS(stdint.h execinfo.h signal.h dlfcn.h \
AC_CHECK_HEADERS(stdint.h execinfo.h signal.h dlfcn.h dirent.h \
netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h sys/socket.h ctype.h)
AC_CHECK_FUNCS(backtrace backtrace_symbols gettimeofday signal)
......
......@@ -52,7 +52,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include <string.h>
#include <stdarg.h>
#include <strings.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
......@@ -64,7 +63,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include <limits.h>
#include <time.h>
#include <ctype.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
......@@ -1075,6 +1076,7 @@ WRAPPER2(void, setbuf, FILE *stream, char *buf)
}
#ifdef HAVE_DIRENT_H
WRAPPER2(DIR *, opendir, const char *path)
{
DIR *p;
......@@ -1121,6 +1123,7 @@ WRAPPER2(struct dirent *, readdir, DIR *dir)
}
return p;
}
#endif
#ifdef HAVE_SYS_SOCKET_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment