aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libguestfs/fix-missing-int64_t.patch
blob: 0ef8e7f4ef9b78d563930e7492dcd270d00d6350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Thu, 12 Oct 2023 01:05:47 +0200
Subject: [PATCH] Fix unknown type name 'int64_t'

    guestfs-utils.h:62:32: error: unknown type name 'int64_t'
       62 | extern int guestfs_int_is_reg (int64_t mode);
          |                                ^~~~~~~
    guestfs-utils.h:40:1: note: 'int64_t' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
       39 | #include "cleanups.h"
      +++ |+#include <stdint.h>
       40 | #include "guestfs-stringlists-utils.h"

--- a/common/utils/guestfs-utils.h
+++ b/common/utils/guestfs-utils.h
@@ -34,6 +34,7 @@
 
 #include <stdio.h>
 #include <stdbool.h>
+#include <stdint.h>
 
 #include "guestfs-internal-all.h"
 #include "cleanups.h"