aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-10-26 09:35:24 +0800
committerkris <kris@FreeBSD.org>2002-10-26 09:35:24 +0800
commit82070d574b48b3f846054f9016b514172b500383 (patch)
treeca44576fb8442aad39f3dcfda62f0869bdca015c
parent8121c2b39b1c426ffc473f69970f4e31e86c5fd0 (diff)
downloadfreebsd-ports-gnome-82070d574b48b3f846054f9016b514172b500383.tar.gz
freebsd-ports-gnome-82070d574b48b3f846054f9016b514172b500383.tar.zst
freebsd-ports-gnome-82070d574b48b3f846054f9016b514172b500383.zip
Fix build on -current (cope with removal of union wait, and remove
bogus duplicate declarations of things in system headers) Submitted by: mike
-rw-r--r--korean/hanterm/files/patch-main.c12
-rw-r--r--korean/hanterm/files/patch-misc.c22
2 files changed, 34 insertions, 0 deletions
diff --git a/korean/hanterm/files/patch-main.c b/korean/hanterm/files/patch-main.c
new file mode 100644
index 000000000000..ced16173058e
--- /dev/null
+++ b/korean/hanterm/files/patch-main.c
@@ -0,0 +1,12 @@
+--- main.c.orig Fri Oct 25 12:00:42 2002
++++ main.c Fri Oct 25 12:01:43 2002
+@@ -224,6 +224,9 @@
+ #ifndef linux
+ #include <sgtty.h>
+ #endif
++#ifdef __FreeBSD__
++#define USE_POSIX_WAIT
++#endif
+ #include <sys/resource.h>
+ #define HAS_UTMP_UT_HOST
+ #define HAS_BSD_GROUPS
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));
+ }
+
+