ports/news/nget/files/patch-par2_par2fileformat.h
Tobias Kortkamp afb62675bf news/nget: Fix build with Clang and GCC > 4.8
- Remove GCC dependency since it now builds fine with Clang
- Set WRKSRC directly instead of symlinking in post-extract
2017-10-14 06:01:53 +00:00

14 lines
577 B
C

./par2/par2fileformat.h:89:25: error: flexible array member 'entries' of non-POD element type 'FILEVERIFICATIONENTRY []'
FILEVERIFICATIONENTRY entries[];
--- par2/par2fileformat.h.orig 2017-10-14 03:14:17 UTC
+++ par2/par2fileformat.h
@@ -86,7 +86,7 @@ struct FILEVERIFICATIONPACKET
PACKET_HEADER header;
// Body
MD5Hash fileid; // MD5hash of file_hash_16k, file_length, file_name
- FILEVERIFICATIONENTRY entries[];
+ FILEVERIFICATIONENTRY entries[0];
} PACKED;
// The file description packet is used to record the name of the file,