[vinagre/gnome-3-16] BSD: fix a couple of implicit declarations



commit 8617cf1a29b965a7c9ef32beead359b69c25e6df
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Sat May 2 16:18:48 2015 +0200

    BSD: fix a couple of implicit declarations
    
    vinagre/pty_open.c:337: warning: implicit declaration of function 'putenv'
    vinagre/pty_open.c:354: warning: implicit declaration of function 'login_tty'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748799

 configure.ac       |    2 +-
 vinagre/pty_open.c |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9802410..60b2c6a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,7 @@ AS_IF([test "x$have_spice" = "xyes"],
 AM_CONDITIONAL([VINAGRE_ENABLE_SPICE], [test "x$have_spice" = "xyes"])
 
 # Checks for header files. See vinagre/pyt_open.c for usage.
-AC_CHECK_HEADERS([ifaddrs.h sys/un.h stropts.h termios.h utmp.h])
+AC_CHECK_HEADERS([ifaddrs.h sys/un.h stropts.h termios.h util.h utmp.h])
 
 # Internationalization.
 AC_SUBST([GETTEXT_PACKAGE], [$PACKAGE_TARNAME])
diff --git a/vinagre/pty_open.c b/vinagre/pty_open.c
index fa34d7e..f8a3932 100644
--- a/vinagre/pty_open.c
+++ b/vinagre/pty_open.c
@@ -43,6 +43,7 @@
 
 #define _XOPEN_SOURCE
 #define _GNU_SOURCE
+#define _BSD_SOURCE
 
 #include "config.h"
 #include <sys/types.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]