summaryrefslogtreecommitdiffstats
path: root/patches/fuse-zip-0.4.0/0001-added-macro-and-include-to-access-UINT16_MAX-constan.patch
blob: 81e3a20267e77267bd71e7b53ffdd8b27a131f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Alexander Galanin <al@galanin.nnov.ru>
Date: Sat, 13 Dec 2014 21:29:34 +0300
Subject: [PATCH] added macro and include to access UINT16_MAX constant (closes
 issue 44)

---
 lib/fileNode.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/fileNode.cpp b/lib/fileNode.cpp
index e2ab19dc9ef0..bee74f0a923b 100644
--- a/lib/fileNode.cpp
+++ b/lib/fileNode.cpp
@@ -19,10 +19,13 @@
 //  51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA               //
 ////////////////////////////////////////////////////////////////////////////
 
+#define __STDC_LIMIT_MACROS
+
 #include <cerrno>
 #include <climits>
 #include <ctime>
 #include <cstdlib>
+#include <stdint.h>
 #include <cstring>
 #include <stdexcept>
 #include <syslog.h>