opkg

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

0026-Include-sys-sysmacros.h-if-necessary.patch (1689B)


      1 From 0d3a091280d0874fb561c83431803eb2489876cb Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Mon, 5 Aug 2019 21:42:54 -0700
      4 Subject: [PATCH] Include sys/sysmacros.h if necessary
      5 
      6 ---
      7  bin/pax/cpio.c        | 4 ++++
      8  bin/pax/gen_subs.c    | 3 +++
      9  bin/pax/tar.c         | 3 +++
     10  usr.bin/rsync/flist.c | 4 ++++
     11  4 files changed, 14 insertions(+)
     12 
     13 diff --git a/bin/pax/cpio.c b/bin/pax/cpio.c
     14 index 92fe965163a..3832b1e87aa 100644
     15 --- a/bin/pax/cpio.c
     16 +++ b/bin/pax/cpio.c
     17 @@ -41,6 +41,10 @@
     18  #include <stdio.h>
     19  #include <unistd.h>
     20  #include <stdlib.h>
     21 +#ifndef major
     22 +#include <sys/sysmacros.h>
     23 +#endif
     24 +
     25  #include "pax.h"
     26  #include "cpio.h"
     27  #include "extern.h"
     28 diff --git a/bin/pax/gen_subs.c b/bin/pax/gen_subs.c
     29 index 42c70804fb7..405dd2c24ed 100644
     30 --- a/bin/pax/gen_subs.c
     31 +++ b/bin/pax/gen_subs.c
     32 @@ -45,6 +45,9 @@
     33  #include <unistd.h>
     34  #include <utmp.h>
     35  #include <vis.h>
     36 +#ifndef major
     37 +#include <sys/sysmacros.h>
     38 +#endif
     39  
     40  #include "pax.h"
     41  #include "extern.h"
     42 diff --git a/bin/pax/tar.c b/bin/pax/tar.c
     43 index 9d8a92d9d13..e84a9c69a09 100644
     44 --- a/bin/pax/tar.c
     45 +++ b/bin/pax/tar.c
     46 @@ -45,6 +45,9 @@
     47  #include <stdlib.h>
     48  #include <string.h>
     49  #include <unistd.h>
     50 +#ifndef major
     51 +#include <sys/sysmacros.h>
     52 +#endif
     53  
     54  #include "pax.h"
     55  #include "extern.h"
     56 diff --git a/usr.bin/rsync/flist.c b/usr.bin/rsync/flist.c
     57 index 392ba494423..5f15487623a 100644
     58 --- a/usr.bin/rsync/flist.c
     59 +++ b/usr.bin/rsync/flist.c
     60 @@ -16,6 +16,10 @@
     61   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     62   */
     63  #include <sys/stat.h>
     64 +#include <sys/types.h>
     65 +#ifndef major
     66 +#include <sys/sysmacros.h>
     67 +#endif
     68  
     69  #include <assert.h>
     70  #include <errno.h>
     71 -- 
     72 2.34.1
     73