Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-db__sql_sqlite_sqliteInt.h,v 1.1 2016/09/08 16:10:24 jperkin Exp $
Support SunOS in C99 mode.
--- db_sql/sqlite/sqliteInt.h.orig 2010-04-12 20:25:22.000000000 +0000
+++ db_sql/sqlite/sqliteInt.h
@@ -168,7 +168,7 @@
**
** See also ticket #2741.
*/
-#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) && SQLITE_THREADSAFE
+#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) && SQLITE_THREADSAFE && !(defined(__sun) && (__STDC_VERSION__ - 0 >= 199901L))
# define _XOPEN_SOURCE 500 /* Needed to enable pthread recursive mutexes */
#endif