[mutter] Fix _XOPEN_SOURCE compilation problems on Solaris



commit 627b4484ec030fce98903c0da153f8d52165312b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Jun 12 14:47:48 2009 -0400

    Fix _XOPEN_SOURCE compilation problems on Solaris
    
    Change #define _XOPEN_SOURCE 500 to 600 in compositor-xrender.c to
    avoid a bad interaction with -xc99 on Solaris.
    
    Remove unneeded #define in compositor-mutter.c.
    
    Based on a patch by Brian Cameron
    
    http://bugzilla.gnome.org/show_bug.cgi?id=580662

 src/compositor/compositor-xrender.c       |    2 +-
 src/compositor/mutter/compositor-mutter.c |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index 814c9f1..74a881b 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -22,7 +22,7 @@
  */
 
 #define _GNU_SOURCE
-#define _XOPEN_SOURCE 500 /* for usleep() */
+#define _XOPEN_SOURCE 600 /* for usleep() */
 
 #include <config.h>
 
diff --git a/src/compositor/mutter/compositor-mutter.c b/src/compositor/mutter/compositor-mutter.c
index e01de52..81541da 100644
--- a/src/compositor/mutter/compositor-mutter.c
+++ b/src/compositor/mutter/compositor-mutter.c
@@ -1,7 +1,6 @@
 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
 #define _GNU_SOURCE
-#define _XOPEN_SOURCE 500 /* for usleep() */
 
 #include <config.h>
 



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