[perl-Glib] Fix compilation against glib < 2.34.0



commit 4e85501a3b03c4636dc1d9529bcacdffcbfadf2c
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Tue Dec 17 20:05:44 2013 +0100

    Fix compilation against glib < 2.34.0
    
    https://rt.cpan.org/Ticket/Display.html?id=91313

 NEWS           |    5 +++++
 gperl-gtypes.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 32c17e2..c92e3c3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Overview of changes in Glib <next>
+==========================================
+
+* Fix compilation against glib < 2.34.0.
+
 Overview of changes in Glib 1.303 (stable)
 ==========================================
 
diff --git a/gperl-gtypes.c b/gperl-gtypes.c
index 7b73682..ff09c81 100644
--- a/gperl-gtypes.c
+++ b/gperl-gtypes.c
@@ -187,7 +187,9 @@ gperl_spawn_flags_get_type (void)
       { G_SPAWN_STDERR_TO_DEV_NULL, "G_SPAWN_STDERR_TO_DEV_NULL", "stderr-to-dev-null" },
       { G_SPAWN_CHILD_INHERITS_STDIN, "G_SPAWN_CHILD_INHERITS_STDIN", "child-inherits-stdin" },
       { G_SPAWN_FILE_AND_ARGV_ZERO, "G_SPAWN_FILE_AND_ARGV_ZERO", "file-and-argv-zero" },
+#if GLIB_CHECK_VERSION (2, 34, 0)
       { G_SPAWN_SEARCH_PATH_FROM_ENVP, "G_SPAWN_SEARCH_PATH_FROM_ENVP", "search-path-from-envp" },
+#endif
       { 0, NULL, NULL }
     };
     etype = g_flags_register_static (g_intern_static_string ("GSpawnFlags"), values);


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