summaryrefslogtreecommitdiff
path: root/sys-apps/sg3_utils/files/sg3_utils-1.26-stdint.patch
blob: 62fb30240e10b9c8061d47d8a9596c4518939946 (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
From: Ed Catmur <ed@catmur.co.uk>
Gentoo-Bug: 229653
X-Gentoo-URL: http://bugs.gentoo.org/show_bug.cgi?id=229653
X-Gentoo-URL: http://bugs.gentoo.org/attachment.cgi?id=158565&action=view
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

For uint64_t to be available, <stdint.h> must be included:
http://www.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html

--- a/include/sg_cmds_basic.h
+++ b/include/sg_cmds_basic.h
@@ -30,6 +30,8 @@
  *
  */
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
--- a/include/sg_cmds_extra.h
+++ b/include/sg_cmds_extra.h
@@ -30,6 +30,8 @@
  *
  */
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif