Unbreak on HEAD.

Don't include <utmp.h> in places where we don't need it.

Approved by:	miwi (portmgr, implicit)
Feature safe:	yes
This commit is contained in:
Ed Schouten 2010-03-06 10:56:43 +00:00
parent 64f3c1d688
commit f9bac4fb0f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250617
2 changed files with 30 additions and 0 deletions

View File

@ -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)

View File

@ -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"