freebsd-ports/x11/multi-gnome-terminal/files/patch-gnome-terminal::gnome-utmp.c
Ed Schouten f9bac4fb0f Unbreak on HEAD.
Don't include <utmp.h> in places where we don't need it.

Approved by:	miwi (portmgr, implicit)
Feature safe:	yes
2010-03-06 10:56:43 +00:00

21 lines
325 B
C

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