Blob Blame History Raw
From 8bf57c44005281dc2c8d459b3a057078d97dbffd Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13@gmail.com>
Date: Thu, 11 Feb 2021 07:35:29 -0500
Subject: [PATCH] Add missing includes for GCC 11 compatibility

---
 zypp/RepoStatus.cc  | 1 +
 zypp/url/UrlBase.cc | 1 +
 2 files changed, 2 insertions(+)

diff --git a/zypp/RepoStatus.cc b/zypp/RepoStatus.cc
index ba10fc7af..2e70a681e 100644
--- a/zypp/RepoStatus.cc
+++ b/zypp/RepoStatus.cc
@@ -12,6 +12,7 @@
 #include <iostream>
 #include <sstream>
 #include <fstream>
+#include <optional>
 #include <set>
 #include <zypp/base/Logger.h>
 #include <zypp/base/String.h>
diff --git a/zypp/url/UrlBase.cc b/zypp/url/UrlBase.cc
index 5f9479390..4c00e808f 100644
--- a/zypp/url/UrlBase.cc
+++ b/zypp/url/UrlBase.cc
@@ -23,6 +23,7 @@
 #include <arpa/inet.h>
 
 #include <iostream>
+#include <optional>
 
 // in the Estonian locale, a-z excludes t, for example. #302525
 // http://en.wikipedia.org/wiki/Estonian_alphabet
-- 
2.29.2