[vinagre] Conditionally compile compatibility ifaddrs code



commit f1fa18eda4da0f4cade7fa282946a40afeece354
Author: David King <amigadave amigadave com>
Date:   Thu Mar 10 17:41:45 2011 +0100

    Conditionally compile compatibility ifaddrs code
    
    This was accidentally removed by the conversion of the plugins
    subdirectory to a non-recursive build.

 Makefile.am |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 17e6339..8e3c399 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -358,6 +358,12 @@ plugin_LTLIBRARIES = \
 	libreversevnc.la \
 	libvnc.la
 
+if VINAGRE_HAVE_SELF_IFADDRS
+ifaddrs_sources = \
+	plugins/reverse-vnc/if/ifaddrs.h \
+	plugins/reverse-vnc/if/getifaddrs.c
+endif
+
 libreversevnc_la_CPPFLAGS = \
 	$(AM_CPPFLAGS) \
 	-I$(top_srcdir)
@@ -368,7 +374,8 @@ libreversevnc_la_SOURCES = \
 	plugins/reverse-vnc/vinagre-reverse-vnc-listener.h \
 	plugins/reverse-vnc/vinagre-reverse-vnc-listener.c \
 	plugins/reverse-vnc/vinagre-reverse-vnc-listener-dialog.h \
-	plugins/reverse-vnc/vinagre-reverse-vnc-listener-dialog.c
+	plugins/reverse-vnc/vinagre-reverse-vnc-listener-dialog.c \
+	$(ifaddrs_sources)
 
 libreversevnc_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
 libreversevnc_la_LIBADD = $(VNC_LIBS)



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