pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/db4 Fix build on SunOS when the default comp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/537f426b7e18
branches:  trunk
changeset: 352183:537f426b7e18
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 08 16:10:24 2016 +0000

description:
Fix build on SunOS when the default compilation environment is C99+.

diffstat:

 databases/db4/distinfo                                 |   3 ++-
 databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 3ef92311affa -r 537f426b7e18 databases/db4/distinfo
--- a/databases/db4/distinfo    Thu Sep 08 16:03:55 2016 +0000
+++ b/databases/db4/distinfo    Thu Sep 08 16:10:24 2016 +0000
@@ -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-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 -r 3ef92311affa -r 537f426b7e18 databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/db4/patches/patch-db__sql_sqlite_sqliteInt.h    Thu Sep 08 16:10:24 2016 +0000
@@ -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
+ 



Home | Main Index | Thread Index | Old Index