pkgsrc/net/vinagre/patches/patch-vinagre_pty__open.c
ryoon 21b8dfd078 Fix build on Linux (CentOS 6.3).
Add workaround not to try toinclude util.h on Linux.
Configure should handle util.h properly.
2012-12-31 23:36:47 +00:00

22 lines
485 B
C

$NetBSD: patch-vinagre_pty__open.c,v 1.2 2012/12/31 23:36:47 ryoon Exp $
--- vinagre/pty_open.c.orig 2011-12-03 07:23:20.000000000 +0000
+++ vinagre/pty_open.c
@@ -40,7 +40,7 @@
/* Originally from vte */
-#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE 600
#define _GNU_SOURCE
#include "config.h"
@@ -69,7 +69,7 @@
#ifdef HAVE_UTMP_H
#include <utmp.h>
#endif
-#ifdef HAVE_UTIL_H
+#if defined(HAVE_LOGIN_TTY) && !defined(__linux)
#include <util.h>
#endif
#include <glib.h>