[BACK]Return to patch-contrib_uuid-ossp_uuid-ossp.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / postgresql94 / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / postgresql94 / patches / patch-contrib_uuid-ossp_uuid-ossp.c (download)

Revision 1.2, Sat Feb 11 10:18:52 2017 UTC (2 years, 3 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-, HEAD
Changes since 1.1: +6 -6 lines

The PostgreSQL Global Development Group has released an update to all supported versions of our database system, including 9.6.2, 9.5.6, 9.4.11, 9.3.16, and 9.2.20. This release includes fixes that prevent data corruption issues in index builds and in certain write-ahead-log replay situations, which are detailed below. It also patches over 75 other bugs reported over the last three months.

$NetBSD: patch-contrib_uuid-ossp_uuid-ossp.c,v 1.2 2017/02/11 10:18:52 adam Exp $

Explicitly define HAVE_UUID_H and HAVE_UUID_OSSP.

--- contrib/uuid-ossp/uuid-ossp.c.orig	2017-02-06 21:49:02.000000000 +0000
+++ contrib/uuid-ossp/uuid-ossp.c
@@ -30,6 +30,7 @@
  */
 #define uuid_hash bsd_uuid_hash
 
+#define HAVE_UUID_H
 #if defined(HAVE_UUID_H)
 #include <uuid.h>
 #elif defined(HAVE_OSSP_UUID_H)
@@ -46,6 +47,7 @@
  * Some BSD variants offer md5 and sha1 implementations but Linux does not,
  * so we use a copy of the ones from pgcrypto.  Not needed with OSSP, though.
  */
+#define HAVE_UUID_OSSP
 #ifndef HAVE_UUID_OSSP
 #include "md5.h"
 #include "sha1.h"