From 2b48556d25c067caa88e324dc6dbdf828ffb789d Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 17 Jan 2023 17:23:44 -0700 Subject: [PATCH] Add patch to add missing include needed for gcc 13 --- libdap-include.patch | 11 +++++++++++ libdap.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 libdap-include.patch diff --git a/libdap-include.patch b/libdap-include.patch new file mode 100644 index 0000000..bf30418 --- /dev/null +++ b/libdap-include.patch @@ -0,0 +1,11 @@ +diff -up libdap-3.20.10/Constructor.cc.include libdap-3.20.10/Constructor.cc +--- libdap-3.20.10/Constructor.cc.include 2022-06-26 15:55:00.000000000 -0600 ++++ libdap-3.20.10/Constructor.cc 2023-01-17 07:23:47.199638401 -0700 +@@ -31,6 +31,7 @@ + + #include "config.h" + ++#include + #include + #include + #include diff --git a/libdap.spec b/libdap.spec index 22a0de1..ea0d627 100644 --- a/libdap.spec +++ b/libdap.spec @@ -10,6 +10,9 @@ Source0: http://www.opendap.org/pub/source/libdap-%{version}.tar.gz Patch0: libdap-offline.patch # Fix for i686 build Patch1: https://github.com/OPENDAP/libdap4/pull/192.patch +# Add missing includes for gcc 13 +# https://github.com/OPENDAP/libdap4/pull/215 +Patch2: libdap-include.patch BuildRequires: make BuildRequires: gcc-c++