From owner-svn-src-projects@freebsd.org Sat Aug 20 19:48:04 2016 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E3AFBC0E2F for ; Sat, 20 Aug 2016 19:48:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EF4918BF; Sat, 20 Aug 2016 19:48:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7KJm3XM009592; Sat, 20 Aug 2016 19:48:03 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7KJm3nW009591; Sat, 20 Aug 2016 19:48:03 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201608201948.u7KJm3nW009591@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sat, 20 Aug 2016 19:48:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r304542 - projects/clang390-import/contrib/jemalloc/include/jemalloc/internal X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2016 19:48:04 -0000 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;