1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/korean/hanterm/files/patch-misc.c
Kris Kennaway 9c2af8b4c4 Fix build on -current (cope with removal of union wait, and remove
bogus duplicate declarations of things in system headers)

Submitted by:	mike
2002-10-26 01:35:24 +00:00

23 lines
510 B
C

--- 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));
}