[geany/geany] aa5758: Fix build with GLib < 2.32

Colomban Wendling git-noreply at xxxxx
Sat Nov 21 18:00:47 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 21 Nov 2015 18:00:47 UTC
Commit:      aa57582a7c73f5bb01e69d2eb40626745cd2aff0
             https://github.com/geany/geany/commit/aa57582a7c73f5bb01e69d2eb40626745cd2aff0

Log Message:
-----------
Fix build with GLib < 2.32

Closes #764.


Modified Paths:
--------------
    src/spawn.c

Modified: src/spawn.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -68,6 +68,10 @@
 # include "support.h"
 #endif
 
+#if ! GLIB_CHECK_VERSION(2, 31, 20) && ! defined(G_SPAWN_ERROR_TOO_BIG)
+# define G_SPAWN_ERROR_TOO_BIG G_SPAWN_ERROR_2BIG
+#endif
+
 #ifdef G_OS_WIN32
 /* Each 4KB under Windows seem to come in 2 portions, so 2K + 2K is more
    balanced than 4095 + 1. May be different on the latest Windows/glib? */



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list