Fix building for GCC 8
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
This commit is contained in:
parent
ae4a2061f6
commit
0789d91850
25
0001-Add-missing-header.patch
Normal file
25
0001-Add-missing-header.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From b3dbe01831b4c5594c5c9144ef3b4f26dad6f22b Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Dieter <jdieter@gmail.com>
|
||||
Date: Thu, 15 Mar 2018 14:26:03 +0200
|
||||
Subject: [PATCH] Add missing header
|
||||
|
||||
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
|
||||
---
|
||||
src/chunkserver/iostat.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/chunkserver/iostat.h b/src/chunkserver/iostat.h
|
||||
index e1a50e97..85fcccd3 100644
|
||||
--- a/src/chunkserver/iostat.h
|
||||
+++ b/src/chunkserver/iostat.h
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <algorithm>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
+#include <sys/sysmacros.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
--
|
||||
2.14.3
|
||||
|
@ -1,7 +1,7 @@
|
||||
Name: lizardfs
|
||||
Summary: Distributed, fault tolerant file system
|
||||
Version: 3.12.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
# LizardFS is under GPLv3 while crcutil is under ASL 2.0 and there's one header,
|
||||
# src/common/coroutine.h, under the Boost license
|
||||
License: GPLv3 and ASL 2.0 and Boost
|
||||
@ -11,6 +11,9 @@ Source1: pam-lizardfs
|
||||
Source2: 95-lizardfs.conf
|
||||
# Use spdlog system library if available
|
||||
Patch0: 0001-Put-customized-spdlog-in-source-so-we-don-t-download.patch
|
||||
# Fix for building with GCC 8
|
||||
# See https://github.com/lizardfs/lizardfs/pull/677
|
||||
Patch1: 0001-Add-missing-header.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: fuse-devel
|
||||
@ -403,6 +406,9 @@ install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/security/limits.d/95-lizardf
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 15 2018 Jonathan Dieter <jdieter@gmail.com> - 3.12.0-7
|
||||
- Fix building for GCC 8
|
||||
|
||||
* Wed Mar 07 2018 Jonathan Dieter <jdieter@gmail.com> - 3.12.0-6
|
||||
- Add BuildRequires: gcc and BuildRequires: gcc-c++
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user