From 9c2af8b4c4e682f46f18a611e36640bc88f63a10 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sat, 26 Oct 2002 01:35:24 +0000 Subject: Fix build on -current (cope with removal of union wait, and remove bogus duplicate declarations of things in system headers) Submitted by: mike --- korean/hanterm/files/patch-misc.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 korean/hanterm/files/patch-misc.c (limited to 'korean/hanterm/files/patch-misc.c') diff --git a/korean/hanterm/files/patch-misc.c b/korean/hanterm/files/patch-misc.c new file mode 100644 index 000000000000..4c53bc6826eb --- /dev/null +++ b/korean/hanterm/files/patch-misc.c @@ -0,0 +1,22 @@ +--- misc.c.orig Tue Jan 8 19:41:11 2002 ++++ misc.c Fri Oct 25 12:10:43 2002 +@@ -904,18 +904,7 @@ + #endif + int n; + { +-#if defined(linux) && defined(__GLIBC__) +- extern const char *const sys_errlist[]; +-#else +-#if (defined(BSD) && (BSD >= 199306)) +- /* in *BSD, should be null because it is already declared */ +-#else +- extern char *sys_errlist[]; +-#endif +-#endif +- extern int sys_nerr; +- +- return ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error"); ++ return (strerror(n)); + } + + -- cgit v1.2.3