[149849] trunk/dports/graphics/cogl/files/patch-clock_gettime.diff

jeremyhu at macports.org jeremyhu at macports.org
Mon Jul 4 02:19:33 PDT 2016


Revision: 149849
          https://trac.macports.org/changeset/149849
Author:   jeremyhu at macports.org
Date:     2016-07-04 02:19:33 -0700 (Mon, 04 Jul 2016)
Log Message:
-----------
cogl: Fix build failure on macOS Sierra

Modified Paths:
--------------
    trunk/dports/graphics/cogl/files/patch-clock_gettime.diff

Modified: trunk/dports/graphics/cogl/files/patch-clock_gettime.diff
===================================================================
--- trunk/dports/graphics/cogl/files/patch-clock_gettime.diff	2016-07-04 06:06:21 UTC (rev 149848)
+++ trunk/dports/graphics/cogl/files/patch-clock_gettime.diff	2016-07-04 09:19:33 UTC (rev 149849)
@@ -1,14 +1,16 @@
 --- cogl/winsys/cogl-winsys-glx.c.orig	2014-03-21 08:50:34.000000000 -0700
 +++ cogl/winsys/cogl-winsys-glx.c	2014-03-22 07:26:28.000000000 -0700
-@@ -66,7 +66,26 @@
+@@ -66,7 +66,28 @@
  #include <sys/stat.h>
  #include <sys/time.h>
  #include <fcntl.h>
 +
-+#ifdef __MACH__
++#if __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200
 +#include <mach/mach_time.h>
++#ifndef CLOCK_REALTIME
 +#define CLOCK_REALTIME 0
 +#define CLOCK_MONOTONIC 0
++#endif
 +static int 
 +clock_gettime(int clk_id, struct timespec *t){
 +    mach_timebase_info_data_t timebase;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160704/fce028f9/attachment.html>


More information about the macports-changes mailing list