gentoo-ebuilds/app-arch/mscompress/files/mscompress-0.3-amd64.patch
David Seifert 219b575bc8
app-arch/mscompress: Port to EAPI 7
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: David Seifert <soap@gentoo.org>
2020-11-14 16:04:04 +01:00

24 lines
541 B
Diff

--- a/mscompress.c
+++ b/mscompress.c
@@ -25,6 +25,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
+#include <stdint.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#else
@@ -156,10 +157,10 @@
int ch, i, run, len, match, size, mask;
char buf[17];
struct stat st;
- unsigned long magic1;
- unsigned long magic2;
+ uint32_t magic1;
+ uint32_t magic2;
unsigned short magic3;
- unsigned long filesize;
+ uint32_t filesize;
/* 28.5 kB */
buffer = malloc (N + F + (N + 1 + N + N + 256) * sizeof (int));