linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

0001-Use-fixed-type-integer-types-when-available.patch

(1100B)


      1 From a53acabb2bade1d1934cc3a44f0174689255cf8a Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Tue, 13 Aug 2019 22:20:39 +0000
      4 Subject: [PATCH] Use fixed-type integer types when available
      5 
      6 This avoids the use of gcc attributes to select the integer width.
      7 ---
      8  include/ffi_common.h | 12 +++++++++++-
      9  1 file changed, 11 insertions(+), 1 deletion(-)
     10 
     11 diff --git a/include/ffi_common.h b/include/ffi_common.h
     12 index 76b9dd6..cfec340 100644
     13 --- a/include/ffi_common.h
     14 +++ b/include/ffi_common.h
     15 @@ -112,7 +112,17 @@ typedef struct
     16  } extended_cif;
     17  
     18  /* Terse sized type definitions.  */
     19 -#if defined(_MSC_VER) || defined(__sgi) || defined(__SUNPRO_C)
     20 +#if __STDC_VERSION__ >= 199901L
     21 +# include <inttypes.h>
     22 +typedef uint8_t UINT8;
     23 +typedef int8_t SINT8;
     24 +typedef uint16_t UINT16;
     25 +typedef int16_t SINT16;
     26 +typedef uint32_t UINT32;
     27 +typedef int32_t SINT32;
     28 +typedef uint64_t UINT64;
     29 +typedef int64_t SINT64;
     30 +#elif defined(_MSC_VER) || defined(__sgi) || defined(__SUNPRO_C)
     31  typedef unsigned char UINT8;
     32  typedef signed char   SINT8;
     33  typedef unsigned short UINT16;
     34 -- 
     35 2.24.0
     36