summarylogtreecommitdiffstats
path: root/0004-vol-add-missing-include-of-stdint.h-to-volinodes.h.patch
blob: 26d33eb55d3be01af4c9552e6f22c97550fb3260 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From 0de03c2765139142e156550cabd4757da9958500 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20La=C3=9F?= <lass@mail.uni-paderborn.de>
Date: Tue, 12 Sep 2017 19:33:15 +0200
Subject: [PATCH 4/5] vol: add missing include of stdint.h to volinodes.h

volinodes.h requires stdint.h for use of uintptr_t:

In file included from vutil.c:55:0:
volinodes.h: In function 'init_inode_info':
volinodes.h:109:45: error: 'uintptr_t' undeclared (first use in this function); did you mean 'intptr_t'?
  stuff[i].inode = (Inode*)((char*)header + (uintptr_t)stuff[i].inode);
                                             ^~~~~~~~~
                                             intptr_t

Similar changes have been applied earlier in 1e53da3.

This change does not apply to master since e2b4fde added an include of roken.h
to all affected source files which in turn includes stdint.h.

Change-Id: Iddd174e844583e06f66d910052e11feff928ba40
---
 src/vol/volinodes.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/vol/volinodes.h b/src/vol/volinodes.h
index 181b441d9..2dec0ceeb 100644
--- a/src/vol/volinodes.h
+++ b/src/vol/volinodes.h
@@ -18,6 +18,9 @@
 #define __volinodes_h_
 
 #include <stddef.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 
 /* Used by vutil.c and salvager.c */
 
-- 
2.14.2