svn commit: r304542 - projects/clang390-import/contrib/jemalloc/include/jemalloc/internal
Dimitry Andric
dim at FreeBSD.org
Sat Aug 20 19:48:04 UTC 2016
Author: dim
Date: Sat Aug 20 19:48:03 2016
New Revision: 304542
URL: https://svnweb.freebsd.org/changeset/base/304542
Log:
Temporarily fix "macro expansion producing 'defined' has undefined
behavior" in jemalloc, by defining JEMALLOC_CLOCK_GETTIME in a portable
manner.
Modified:
projects/clang390-import/contrib/jemalloc/include/jemalloc/internal/nstime.h
Modified: projects/clang390-import/contrib/jemalloc/include/jemalloc/internal/nstime.h
==============================================================================
--- projects/clang390-import/contrib/jemalloc/include/jemalloc/internal/nstime.h Sat Aug 20 19:33:55 2016 (r304541)
+++ projects/clang390-import/contrib/jemalloc/include/jemalloc/internal/nstime.h Sat Aug 20 19:48:03 2016 (r304542)
@@ -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;
More information about the svn-src-projects
mailing list