aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-03-06 18:56:43 +0800
committered <ed@FreeBSD.org>2010-03-06 18:56:43 +0800
commit7402e15f19bfad8408c81a86c538e1df09fe6d69 (patch)
treea24d1998e41f757c15cb49d48ba61ead7dd698a7 /x11
parent4a0b183acfc96303ee99ef2bbde346a42a57bac7 (diff)
downloadfreebsd-ports-gnome-7402e15f19bfad8408c81a86c538e1df09fe6d69.tar.gz
freebsd-ports-gnome-7402e15f19bfad8408c81a86c538e1df09fe6d69.tar.zst
freebsd-ports-gnome-7402e15f19bfad8408c81a86c538e1df09fe6d69.zip
Unbreak on HEAD.
Don't include <utmp.h> in places where we don't need it. Approved by: miwi (portmgr, implicit) Feature safe: yes
Diffstat (limited to 'x11')
-rw-r--r--x11/multi-gnome-terminal/files/patch-gnome-terminal::gnome-utmp.c20
-rw-r--r--x11/multi-gnome-terminal/files/patch-gnome-terminal::mgt-pty-helper.c10
2 files changed, 30 insertions, 0 deletions
diff --git a/x11/multi-gnome-terminal/files/patch-gnome-terminal::gnome-utmp.c b/x11/multi-gnome-terminal/files/patch-gnome-terminal::gnome-utmp.c
new file mode 100644
index 000000000000..e35efe569e8b
--- /dev/null
+++ b/x11/multi-gnome-terminal/files/patch-gnome-terminal::gnome-utmp.c
@@ -0,0 +1,20 @@
+--- gnome-terminal/gnome-utmp.c
++++ gnome-terminal/gnome-utmp.c
+@@ -33,8 +33,6 @@
+ # endif
+ #endif
+
+-#include <utmp.h>
+-
+ #if defined(HAVE_LASTLOG_H)
+ # include <lastlog.h>
+ #endif
+@@ -45,6 +43,8 @@
+
+ #if defined(HAVE_UTMPX_H)
+ # include <utmpx.h>
++#else
++# include <utmp.h>
+ #endif
+
+ #if defined(HAVE_TTYENT_H)
diff --git a/x11/multi-gnome-terminal/files/patch-gnome-terminal::mgt-pty-helper.c b/x11/multi-gnome-terminal/files/patch-gnome-terminal::mgt-pty-helper.c
new file mode 100644
index 000000000000..85b8c6c14bf6
--- /dev/null
+++ b/x11/multi-gnome-terminal/files/patch-gnome-terminal::mgt-pty-helper.c
@@ -0,0 +1,10 @@
+--- gnome-terminal/mgt-pty-helper.c
++++ gnome-terminal/mgt-pty-helper.c
+@@ -50,7 +50,6 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+-#include <utmp.h>
+ #include <grp.h>
+ #include "gnome-pty.h"
+ #include "gnome-login-support.h"