diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-09-08 16:10:24 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-09-08 16:10:24 +0000 |
commit | a87d0e98f359df1c37579cd2b40eff0f6db60398 (patch) | |
tree | d9ab805419f6abe96a7199d1cb5ec66abc5682c3 /databases/db4 | |
parent | 139bc6642e91f536db018e807dab014a09b8c49c (diff) | |
download | pkgsrc-a87d0e98f359df1c37579cd2b40eff0f6db60398.tar.gz |
Fix build on SunOS when the default compilation environment is C99+.
Diffstat (limited to 'databases/db4')
-rw-r--r-- | databases/db4/distinfo | 3 | ||||
-rw-r--r-- | databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/databases/db4/distinfo b/databases/db4/distinfo index 04de09a225e..5eb9fe273af 100644 --- a/databases/db4/distinfo +++ b/databases/db4/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.45 2015/11/03 01:56:11 agc Exp $ +$NetBSD: distinfo,v 1.46 2016/09/08 16:10:24 jperkin Exp $ SHA1 (db-4.8.30.tar.gz) = ab36c170dda5b2ceaad3915ced96e41c6b7e493c RMD160 (db-4.8.30.tar.gz) = dd2fcd4c9b857a91e2f491fd4fadb0c51b993a9c @@ -8,6 +8,7 @@ SHA1 (patch-aa) = 1004feec022eefbf3fd57b6d9af99edc5a2bf17a SHA1 (patch-ab) = 961c4ef5ad84739bd7eae57f407b89f42864b66e SHA1 (patch-ac) = 045a3b83b9c6c164382ec546b06ae248620552cf SHA1 (patch-ae) = 43e574154de93dba60392b09d6ebddbca1036849 +SHA1 (patch-db__sql_sqlite_sqliteInt.h) = 7e5579d6c55c8163e35718bdecbce079b1efde3e SHA1 (patch-dbinc_atomic.h) = d68db1b7e07b35ec070a18f0195b9f3b386114dd SHA1 (patch-dist_s__sig) = d891a6fabd27a07776bdaa21843563638ecb89f2 SHA1 (patch-env_env__sig.c) = 93199a4147de946d1285fa006c751f4569f2cdb5 diff --git a/databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h b/databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h new file mode 100644 index 00000000000..995f403e193 --- /dev/null +++ b/databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h @@ -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 + |