[glib] Fix the stack direction check again



commit 698393f15d32c6386588cf37b3aea8342ae45bf7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 23 21:09:32 2013 -0500

    Fix the stack direction check again
    
    Turns out I got it wrong.

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3811a26..428be67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -597,7 +597,7 @@ AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[
         AC_TRY_RUN([
        volatile int *a = 0, *b = 0;
        void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); }
-       int main () { volatile int y = 7; a = &y; f (100); return b > a; }
+       int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; }
                ],
        glib_cv_stack_grows=yes
         ,


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