diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 06492d6c019a2c163b7e7f951610bbd0fd31bc75..dbb3890fb4357245ce263c4800678b041aadee06 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
+
+	* config.in: Remove HAVE_LSTAT.
+	* configure, configure.in: Don't test for lstat.
+
 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
 	* opts.c (decode_options): Do language-specific initialization for
diff --git a/gcc/config.in b/gcc/config.in
index e1feb70cb30a89709245be7ea01893fd39cc9c02..8d639942dbbd75588aef768b9ed5cccb877fa416 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -73,9 +73,6 @@
 /* Define if you have the kill function.  */
 #undef HAVE_KILL
 
-/* Define if you have the lstat function.  */
-#undef HAVE_LSTAT
-
 /* Define if you have the mbstowcs function.  */
 #undef HAVE_MBSTOWCS
 
diff --git a/gcc/configure b/gcc/configure
index de7b106bc1337f84c63f49ba7bfe7e7a573bc978..5d5ff955effacb766584cbc0c0079558f28bd890 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -3652,7 +3652,7 @@ fi
 
 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
 	sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
-	fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
+	fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
         setlocale
 do
diff --git a/gcc/configure.in b/gcc/configure.in
index f7ffc2f767dc6d8108ea728339b193553484be89..26933d376b5eb13cebc8ee4dd77315aa16cf0a4d 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -791,7 +791,7 @@ dnl gcc_AC_C_ENUM_BF_UNSIGNED
 
 AC_CHECK_FUNCS(times clock dup2 kill getrlimit setrlimit atoll atoq \
 	sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
-	fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
+	fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
         scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
         setlocale)