Revision
145273
Author
devans@macports.org
Date
2016-01-30 10:47:01 -0800 (Sat, 30 Jan 2016)

Log Message

GNOME-3/stable: vte, untested fix for 10.6 build issue (#50491).

Modified Paths

Added Paths

Diff

Modified: users/devans/GNOME-3/stable/dports/gnome/vte/Portfile (145272 => 145273)


--- users/devans/GNOME-3/stable/dports/gnome/vte/Portfile	2016-01-30 14:40:19 UTC (rev 145272)
+++ users/devans/GNOME-3/stable/dports/gnome/vte/Portfile	2016-01-30 18:47:01 UTC (rev 145273)
@@ -42,7 +42,8 @@
 
 depends_run         port:gnome-themes-standard
 
-patchfiles          patch-src-Makefile.am.diff
+patchfiles          patch-src-Makefile.am.diff \
+                    patch-src-pty.cc.diff
 
 gobject_introspection yes
 

Added: users/devans/GNOME-3/stable/dports/gnome/vte/files/patch-src-pty.cc.diff (0 => 145273)


--- users/devans/GNOME-3/stable/dports/gnome/vte/files/patch-src-pty.cc.diff	                        (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/vte/files/patch-src-pty.cc.diff	2016-01-30 18:47:01 UTC (rev 145273)
@@ -0,0 +1,14 @@
+--- src/pty.cc.orig	2016-01-30 10:31:41.000000000 -0800
++++ src/pty.cc	2016-01-30 10:33:32.000000000 -0800
+@@ -59,6 +59,11 @@
+ #ifdef HAVE_PTY_H
+ #include <pty.h>
+ #endif
++
++#ifndef O_CLOEXEC
++#define O_CLOEXEC 0
++#endif
++
+ #if defined(__sun) && defined(HAVE_STROPTS_H)
+ #include <stropts.h>
+ #endif