diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 9a4df519a37fddc33464a9d3282e8dc503c9ab68..2d6d229b971a5cb58002298a5cb516baa33dcb16 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-22  Anthony Green  <green@redhat.com>
+
+	* os_dep.c: Fix GC_get_stack_base build problem for vanilla elf
+	"NOSYS" targets.
+
 2003-09-20    <green@redhat.com>
 
 	* include/private/gcconfig.h: Don't check for __XSCALE__.  Instead
diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c
index 00950dd0847d68264e822bfec3ed1b76385be614..fd195e1c806c6b9acdfa775fd4d0b4a5d584b984 100644
--- a/boehm-gc/os_dep.c
+++ b/boehm-gc/os_dep.c
@@ -963,7 +963,7 @@ ptr_t GC_get_stack_base()
 #endif /* FREEBSD_STACKBOTTOM */
 
 #if !defined(BEOS) && !defined(AMIGA) && !defined(MSWIN32) \
-    && !defined(MSWINCE) && !defined(OS2)
+    && !defined(MSWINCE) && !defined(OS2) && !defined(NOSYS) && !defined(ECOS)
 
 ptr_t GC_get_stack_base()
 {
@@ -1021,7 +1021,7 @@ ptr_t GC_get_stack_base()
 #   endif /* STACKBOTTOM */
 }
 
-# endif /* ! AMIGA, !OS 2, ! MS Windows, !BEOS */
+# endif /* ! AMIGA, !OS 2, ! MS Windows, !BEOS, !NOSYS, !ECOS */
 
 /*
  * Register static data segment(s) as roots.