opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0023-rsync-Add-missing-includes.patch (1093B)


      1 From d423093f8dec64533733deb0762353f68b0adeb2 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 | 3 +++
     11  usr.bin/rsync/socket.c | 1 +
     12  2 files changed, 4 insertions(+)
     13 
     14 diff --git a/usr.bin/rsync/extern.h b/usr.bin/rsync/extern.h
     15 index 2815f82cf89..a3f2a15b959 100644
     16 --- a/usr.bin/rsync/extern.h
     17 +++ b/usr.bin/rsync/extern.h
     18 @@ -17,6 +17,9 @@
     19  #ifndef EXTERN_H
     20  #define EXTERN_H
     21  
     22 +#include <stdint.h>
     23 +#include <sys/types.h>
     24 +
     25  /*
     26   * This is the rsync protocol version that we support.
     27   */
     28 diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c
     29 index 953b229afbc..aa95cce9369 100644
     30 --- a/usr.bin/rsync/socket.c
     31 +++ b/usr.bin/rsync/socket.c
     32 @@ -28,6 +28,7 @@
     33  #include <poll.h>
     34  #include <resolv.h>
     35  #include <stdlib.h>
     36 +#include <stdio.h>
     37  #include <string.h>
     38  #include <unistd.h>
     39  #include <err.h>
     40 -- 
     41 2.34.1
     42