linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
0022-rsync-Add-missing-includes.patch
(1057B)
1 From 9320adbea46f051b32c93a171dc0d52de8f845c3 Mon Sep 17 00:00:00 2001
2 From: Michael Forney <mforney@mforney.org>
3 Date: Fri, 14 Jun 2019 12:40:56 -0700
4 Subject: [PATCH] rsync: Add missing includes
5
6 - stdio.h in socket.c for sscanf
7 - stdint.h in extern.h for fixed-width integer types
8 - sys/types.h in extern.h for various type definitions
9 ---
10 usr.bin/rsync/extern.h | 2 ++
11 usr.bin/rsync/socket.c | 1 +
12 2 files changed, 3 insertions(+)
13
14 diff --git a/usr.bin/rsync/extern.h b/usr.bin/rsync/extern.h
15 index 5bb23aaa486..55d7bc26ae2 100644
16 --- a/usr.bin/rsync/extern.h
17 +++ b/usr.bin/rsync/extern.h
18 @@ -17,6 +17,8 @@
19 #ifndef EXTERN_H
20 #define EXTERN_H
21
22 +#include <stdint.h>
23 +#include <sys/types.h>
24 #include <openssl/md4.h>
25
26 /*
27 diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c
28 index d723d9e7df4..adc4a22cf40 100644
29 --- a/usr.bin/rsync/socket.c
30 +++ b/usr.bin/rsync/socket.c
31 @@ -28,6 +28,7 @@
32 #include <poll.h>
33 #include <resolv.h>
34 #include <stdlib.h>
35 +#include <stdio.h>
36 #include <string.h>
37 #include <unistd.h>
38 #include <err.h>
39 --
40 2.49.0
41