diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fb4c7f657e705da81b7e253ccb6cf876b6232fa7..71c594b65ce5234683e53a39e1467414eba9da99 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-07  Eric Christopher  <echristo@redhat.com>
+
+	PR target/16317
+	* config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
+
 2004-12-07  Eric Christopher  <echristo@redhat.com>
 
 	* config/mips/mips-protos.h (mips_valid_pointer_mode): Move
diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h
index 7b3cc3b5651802a721f4362cf0c7a1bc2fb42cce..2c078af88987f05a90c7c30fd7effbbd98a0ec17 100644
--- a/gcc/config/netbsd.h
+++ b/gcc/config/netbsd.h
@@ -163,6 +163,9 @@ Boston, MA 02111-1307, USA.  */
 
 #define HANDLE_SYSV_PRAGMA 1
 
+/* Don't assume anything about the header files.  */
+#undef  NO_IMPLICIT_EXTERN_C
+#define NO_IMPLICIT_EXTERN_C    1
 
 /* Define some types that are the same on all NetBSD platforms,
    making them agree with <machine/ansi.h>.  */