Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2016 15:06:00 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r310542 - stable/11/contrib/jemalloc/include/jemalloc/internal
Message-ID:  <201612251506.uBPF60NF066370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sun Dec 25 15:05:59 2016
New Revision: 310542
URL: https://svnweb.freebsd.org/changeset/base/310542

Log:
  Merge r304542 from projects/clang390-import (this fix was obsoleted in
  head by an update to jemalloc 4.3.1 in r308473):
  
  Temporarily fix "macro expansion producing 'defined' has undefined
  behavior" in jemalloc, by defining JEMALLOC_CLOCK_GETTIME in a portable
  manner.

Modified:
  stable/11/contrib/jemalloc/include/jemalloc/internal/nstime.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/jemalloc/include/jemalloc/internal/nstime.h
==============================================================================
--- stable/11/contrib/jemalloc/include/jemalloc/internal/nstime.h	Sun Dec 25 14:58:50 2016	(r310541)
+++ stable/11/contrib/jemalloc/include/jemalloc/internal/nstime.h	Sun Dec 25 15:05:59 2016	(r310542)
@@ -1,8 +1,11 @@
 /******************************************************************************/
 #ifdef JEMALLOC_H_TYPES
 
-#define	JEMALLOC_CLOCK_GETTIME defined(_POSIX_MONOTONIC_CLOCK) \
-    && _POSIX_MONOTONIC_CLOCK >= 0
+#if defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0
+#define JEMALLOC_CLOCK_GETTIME 1
+#else
+#define JEMALLOC_CLOCK_GETTIME 0
+#endif
 
 typedef struct nstime_s nstime_t;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612251506.uBPF60NF066370>