aboutsummaryrefslogtreecommitdiff
path: root/assert
diff options
context:
space:
mode:
Diffstat (limited to 'assert')
-rw-r--r--assert/Makefile1
-rw-r--r--assert/assert-perr.c8
2 files changed, 7 insertions, 2 deletions
diff --git a/assert/Makefile b/assert/Makefile
index 208a71a..5780457 100644
--- a/assert/Makefile
+++ b/assert/Makefile
@@ -20,6 +20,7 @@
# Sub-makefile for assert portion of the library.
#
subdir := assert
+headers := assert.h
routines := assert assert-perr
diff --git a/assert/assert-perr.c b/assert/assert-perr.c
index c62ae46..246727e 100644
--- a/assert/assert-perr.c
+++ b/assert/assert-perr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,6 +22,10 @@
#include <sysdep.h>
+/* This is the internal function we use to generate the error string. */
+extern char *_strerror_internal __P ((int, char *, size_t));
+
+
extern const char *__assert_program_name; /* In assert.c. */
/* This function, when passed an error number, a filename, and a line
@@ -49,7 +53,7 @@ __assert_perror_fail (int errnum,
__assert_program_name ? ": " : "",
file, line,
function ? function : "", function ? ": " : "",
- __strerror_r (errnum, errbuf, sizeof errbuf));
+ _strerror_internal (errnum, errbuf, sizeof errbuf));
(void) fflush (stderr);
abort ();