config.h so that openat-die.c can omit calls to error().
* lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
is defined.
+ * lib/xalloc-die.c: Same thing.
* libposix/lib/mk-lpx-config-h.sh (GNULIB_TEST): remove these defines
2010-12-29 Eric Blake <eblake@redhat.com>
#ifndef GNULIB_LIBPOSIX
#include "error.h"
-#endif GNULIB_LIBPOSIX
+#endif /* GNULIB_LIBPOSIX */
#include "exitfail.h"
#include "gettext.h"
#ifndef GNULIB_LIBPOSIX
error (exit_failure, errnum,
_("unable to record current working directory"));
-#endif GNULIB_LIBPOSIX
+#endif /* GNULIB_LIBPOSIX */
/* The `noreturn' attribute cannot be applied to error, since it returns
when its first argument is 0. To help compilers understand that this
function does not return, call abort. Also, the abort is a
#ifndef GNULIB_LIBPOSIX
error (exit_failure, errnum,
_("failed to return to initial working directory"));
-#endif GNULIB_LIBPOSIX
+#endif /* GNULIB_LIBPOSIX */
/* As above. */
abort ();
#include <stdlib.h>
+#ifndef GNULIB_LIBPOSIX
#include "error.h"
+#endif /* GNULIB_LIBPOSIX */
+
#include "exitfail.h"
#include "gettext.h"
void
xalloc_die (void)
{
+#ifndef GNULIB_LIBPOSIX
error (exit_failure, 0, "%s", _("memory exhausted"));
+#endif /* GNULIB_LIBPOSIX */
/* The `noreturn' cannot be given to error, since it may return if
its first argument is 0. To help compilers understand the