aboutsummaryrefslogtreecommitdiff
path: root/libmudflap/mf-hooks2.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-06-29 10:27:15 +0000
committerNick Clifton <nickc@gcc.gnu.org>2004-06-29 10:27:15 +0000
commit962fe3950f5130476f665b08be7db6b5552e8a3b (patch)
treeade8f71b26a155ec6b40dfd13caa42877aa9cb20 /libmudflap/mf-hooks2.c
parent313329e13b280e3edc77f4efe308419c24e1913d (diff)
downloadgcc-962fe3950f5130476f665b08be7db6b5552e8a3b.zip
gcc-962fe3950f5130476f665b08be7db6b5552e8a3b.tar.gz
gcc-962fe3950f5130476f665b08be7db6b5552e8a3b.tar.bz2
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
Diffstat (limited to 'libmudflap/mf-hooks2.c')
-rw-r--r--libmudflap/mf-hooks2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmudflap/mf-hooks2.c b/libmudflap/mf-hooks2.c
index d2a5f313..e031b43 100644
--- a/libmudflap/mf-hooks2.c
+++ b/libmudflap/mf-hooks2.c
@@ -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