Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jan 2018 18:06:19 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460135 - head/shells/fish/files
Message-ID:  <201801271806.w0RI6JlJ032708@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers (src committer)
Date: Sat Jan 27 18:06:19 2018
New Revision: 460135
URL: https://svnweb.freebsd.org/changeset/ports/460135

Log:
  shells/fish: fix the build with Clang-6.0
  
  Clang-6.0 on FreeBSD 12 doesn't define __cpp_lib_make_unique.  Patch fish to
  key off of the value of __cplusplus instead.
  
  PR:		225456
  Reported by:	pkg-fallout
  Reviewed by:	jbeich, dim
  Differential Revision:	https://reviews.freebsd.org/D14058

Added:
  head/shells/fish/files/patch-src_common.h   (contents, props changed)

Added: head/shells/fish/files/patch-src_common.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/fish/files/patch-src_common.h	Sat Jan 27 18:06:19 2018	(r460135)
@@ -0,0 +1,11 @@
+--- src/common.h.orig	2018-01-26 20:48:40 UTC
++++ src/common.h
+@@ -658,7 +658,7 @@ wcstring vformat_string(const wchar_t *format, va_list
+ void append_format(wcstring &str, const wchar_t *format, ...);
+ void append_formatv(wcstring &str, const wchar_t *format, va_list ap);
+ 
+-#ifdef __cpp_lib_make_unique
++#if __cplusplus >= 201402L
+ using std::make_unique;
+ #else
+ /// make_unique implementation



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