From 32f111f014c3e8371fcf5c26067b8a57e1ea4b15 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 12 Apr 2017 15:22:22 +0200 Subject: [PATCH] burp-server: fix FTBFS with gcc6 --- .../patches/fix-gcc6-narrowing.patch | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch diff --git a/srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch b/srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch new file mode 100644 index 00000000000..14643dd215e --- /dev/null +++ b/srcpkgs/burp-server/patches/fix-gcc6-narrowing.patch @@ -0,0 +1,49 @@ +--- src/conf.c.orig ++++ src/conf.c +@@ -538,7 +538,7 @@ static void do_build_regex(struct strlis + struct fstype + { + const char *str; +- long flag; ++ unsigned int flag; + }; + + static struct fstype fstypes[]={ +@@ -590,7 +590,7 @@ int main(int argc, char *argv[]) + + #endif + +-static int fstype_to_flag(const char *fstype, long *flag) ++static int fstype_to_flag(const char *fstype, unsigned int *flag) + { + #ifdef HAVE_LINUX_OS + int i=0; +--- src/strlist.c.orig ++++ src/strlist.c +@@ -21,7 +21,7 @@ void strlists_free(struct strlist **bd, + } + } + +-int strlist_add(struct strlist ***bdlist, int *count, char *path, long flag) ++int strlist_add(struct strlist ***bdlist, int *count, char *path, unsigned int flag) + { + //int b=0; + struct strlist *bdnew=NULL; +--- src/strlist.h.orig ++++ src/strlist.h +@@ -11,13 +11,13 @@ typedef struct strlist strlist_t; + + struct strlist + { +- long flag; ++ unsigned int flag; + char *path; + regex_t *re; + }; + + extern void strlists_free(struct strlist **bd, int count); +-extern int strlist_add(struct strlist ***bdlist, int *count, char *path, long flag); ++extern int strlist_add(struct strlist ***bdlist, int *count, char *path, unsigned int flag); + extern int strlist_sort(struct strlist **a, struct strlist **b); + + #endif