[vinagre] BSD: fix a couple of implicit declarations
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] BSD: fix a couple of implicit declarations
- Date: Sun, 3 May 2015 06:43:06 +0000 (UTC)
commit 5dbcf9704e1b1529172c2894182389d11fde55a5
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]