38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
--- lib/error.c
|
|
+++ lib/error.c 2007-12-07 18:50:29.332479427 +0100
|
|
@@ -76,12 +76,15 @@ private_strerror (errnum)
|
|
#define strerror private_strerror
|
|
#endif
|
|
|
|
+#include "lib/error.h"
|
|
+
|
|
/* Print the program name and error message MESSAGE, which is a printf-style
|
|
format string with optional args.
|
|
If ERRNUM is nonzero, print its corresponding system error message.
|
|
Exit with status STATUS if it is nonzero. */
|
|
/* VARARGS */
|
|
|
|
+#ifndef __GLIBC__ /* glibc exports this function */
|
|
void
|
|
#if defined(VA_START) && __STDC__
|
|
error (int status, int errnum, const char *message, ...)
|
|
@@ -137,3 +140,4 @@ error (status, errnum, message, va_alist
|
|
exit (status);
|
|
}
|
|
}
|
|
+#endif
|
|
--- lib/error.h
|
|
+++ lib/error.h 2007-12-07 18:51:53.803262466 +0100
|
|
@@ -29,9 +29,9 @@ extern int errno;
|
|
#include "manconfig.h"
|
|
|
|
#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT)
|
|
-void error (int, int, const char *, ...) ATTRIBUTE_FORMAT_PRINTF(3, 4);
|
|
+extern void error (int, int, const char *, ...) ATTRIBUTE_FORMAT_PRINTF(3, 4);
|
|
#else
|
|
-void error ();
|
|
+extern void error ();
|
|
#endif
|
|
|
|
#endif
|