[55893] trunk/dports/x11/mlterm
ryandesign at macports.org
ryandesign at macports.org
Thu Aug 20 14:28:59 PDT 2009
Revision: 55893
http://trac.macports.org/changeset/55893
Author: ryandesign at macports.org
Date: 2009-08-20 14:28:58 -0700 (Thu, 20 Aug 2009)
Log Message:
-----------
mlterm: fix build on Tiger; closes #19927
Modified Paths:
--------------
trunk/dports/x11/mlterm/Portfile
Added Paths:
-----------
trunk/dports/x11/mlterm/files/
trunk/dports/x11/mlterm/files/patch-kik_pty_streams.c.diff
Modified: trunk/dports/x11/mlterm/Portfile
===================================================================
--- trunk/dports/x11/mlterm/Portfile 2009-08-20 21:23:24 UTC (rev 55892)
+++ trunk/dports/x11/mlterm/Portfile 2009-08-20 21:28:58 UTC (rev 55893)
@@ -36,6 +36,8 @@
port:xorg-libsm \
port:Xft2
+patchfiles patch-kik_pty_streams.c.diff
+
use_autoconf yes
pre-configure {
Added: trunk/dports/x11/mlterm/files/patch-kik_pty_streams.c.diff
===================================================================
--- trunk/dports/x11/mlterm/files/patch-kik_pty_streams.c.diff (rev 0)
+++ trunk/dports/x11/mlterm/files/patch-kik_pty_streams.c.diff 2009-08-20 21:28:58 UTC (rev 55893)
@@ -0,0 +1,39 @@
+http://mlterm.cvs.sourceforge.net/mlterm/mlterm/kiklib/src/kik_pty_streams.c?r1=1.21&r2=1.22
+--- kiklib/src/kik_pty_streams.c 2006/10/19 14:41:51 1.21
++++ kiklib/src/kik_pty_streams.c 2007/12/12 10:50:43 1.22
+@@ -1,10 +1,12 @@
+ /*
+- * $Id: kik_pty_streams.c,v 1.21 2006/10/19 14:41:51 h_minami Exp $
++ * $Id: kik_pty_streams.c,v 1.22 2007/12/12 10:50:43 kzys Exp $
+ */
+
+ /* ptsname/grantpt/unlockpt are not available without _XOPEN_SOURCE
+ * on GNU libc based systems. (It may have some ill side-effect though) */
++#ifndef __APPLE__
+ #define _XOPEN_SOURCE 500
++#endif
+
+ /* When _XOPEN_SOURCE is defined,
+ * u_int/u_long/... may not be defined without _BSD_SOURCE */
+@@ -245,6 +247,13 @@
+ }
+ #endif /*TIOCNOTTY*/
+ #endif /*HAVE_SETSID*/
++
++#ifdef TIOCSCTTY /* BSD (in addition Linux also knows TIOCSCTTY) */
++ if(ioctl(*slave, TIOCSCTTY, NULL) < 0)
++ {
++ return -1 ;
++ }
++#else /* no TIOCSCTTY (SysV) */
+ fd = open("/dev/tty", O_RDWR | O_NOCTTY);
+ if (fd >= 0)
+ {
+@@ -261,6 +270,7 @@
+ return -1;
+ }
+ close(fd);
++#endif /* no TIOCSCTTY (SysV) */
+
+ dup2( *slave , 0) ;
+ dup2( *slave , 1) ;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090820/442bd33f/attachment.html>
More information about the macports-changes
mailing list