7222
|
1 |
# Source: Internal
|
|
2 |
# Info: Written internally so this component can be built on Solaris.
|
|
3 |
# Status: This patch is offered at https://github.com/rhinstaller/shim/issues/54
|
|
4 |
|
|
5 |
--- ORIGINAL/include/PeImage.h 2016-06-24 03:08:21.920617695 +0000
|
|
6 |
+++ shim-0.9/include/PeImage.h 2016-08-01 20:56:15.093433529 +0000
|
|
7 |
@@ -24,6 +24,11 @@
|
|
8 |
|
|
9 |
#include <wincert.h>
|
|
10 |
|
|
11 |
+#ifdef __sun
|
|
12 |
+#include <sys/int_types.h>
|
|
13 |
+typedef uint64_t UINTN;
|
|
14 |
+#endif
|
|
15 |
+
|
|
16 |
#define SIGNATURE_16(A, B) ((A) | (B << 8))
|
|
17 |
#define SIGNATURE_32(A, B, C, D) (SIGNATURE_16 (A, B) | (SIGNATURE_16 (C, D) << 16))
|
|
18 |
#define SIGNATURE_64(A, B, C, D, E, F, G, H) \
|