diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b5f9080a05f70ef67b94a26ef4d2e87c30243d95..10de4bdcd7d3eb700b93110850d1aebeed9fc1ba 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+	* gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
+	__gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
+	inhibit_libc is defined.
+
 2004-04-25  Richard Sandiford  <rsandifo@redhat.com>
 
 	* config/mips/mips-protos.h (mips_linked_macc_p): Declare.
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h
index 8e0da0e572a3bea9a87dea553891928fa82930fb..75abbea479ba4731a838e7e0a9492408f4ba183b 100644
--- a/gcc/gcov-io.h
+++ b/gcc/gcov-io.h
@@ -448,6 +448,7 @@ extern void __gcov_merge_single (gcov_type *, unsigned);
    consecutive values.  */
 extern void __gcov_merge_delta (gcov_type *, unsigned);
 
+#ifndef inhibit_libc
 /* The wrappers around some library functions..  */
 extern pid_t __gcov_fork (void);
 extern int __gcov_execl (const char *, const char *, ...);
@@ -456,6 +457,7 @@ extern int __gcov_execle (const char *,  const char *, ...);
 extern int __gcov_execv (const char *, char *const []);
 extern int __gcov_execvp (const char *, char *const []);
 extern int __gcov_execve (const char *, char  *const [], char *const []);
+#endif
 
 #endif /* IN_LIBGCOV */