diff --git a/gnu-compat/obstack.c b/gnu-compat/obstack.c
index 75440d9c792f40f2d27208ffbe8217ccd842504b..25d0b5024d2235dd7998add553f9c4911fb57498 100644
--- a/gnu-compat/obstack.c
+++ b/gnu-compat/obstack.c
@@ -105,12 +105,17 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort;
 
 /* Exit value used when `print_and_abort' is used.  */
 # include <stdlib.h>
+
+#if 0
 # ifdef _LIBC
 int obstack_exit_failure = EXIT_FAILURE;
 # else
 #  include "exitfail.h"
 #  define obstack_exit_failure exit_failure
 # endif
+#else
+int obstack_exit_failure = 1;
+#endif
 
 # ifdef _LIBC
 #  if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)
@@ -400,6 +405,8 @@ _obstack_memory_used (struct obstack *h)
   return nbytes;
 }
 
+
+#if 0
 /* Define the error handler.  */
 # ifdef _LIBC
 #  include <libintl.h>
@@ -409,6 +416,11 @@ _obstack_memory_used (struct obstack *h)
 # ifndef _
 #  define _(msgid) gettext (msgid)
 # endif
+#else
+# ifndef _
+#  define _(msgid) msgid
+# endif
+#endif
 
 # ifdef _LIBC
 #  include <libio/iolibio.h>