summaryrefslogtreecommitdiffhomepage
path: root/patches/infounzip.local.patch
blob: 16fd15bbff79b03626a6a5fb712e03565cea6287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- infounzip/Makefile.dist	2019-04-26 18:39:08.660000000 +0000
+++ infounzip/Makefile	2019-06-16 16:37:56.980000000 +0000
@@ -10,7 +10,7 @@
 INSTALL_PROGRAM = cp
 INSTALL_D = mkdir -p
 
-CFLAGS ?= -I. -DUNIX -DNO_BZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -D_MBCS
+override CFLAGS += --include=unistd.h --include=stdlib.h --include=stdio.h --include=sys/stat.h -I. -DUNIX -DNO_BZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUNICODE_SUPPORT -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -D_MBCS
 LFLAGS1 ?=
 LDFLAGS ?=
 
@@ -38,10 +38,10 @@
 $(OBJF): $(UNZIP_H)
 
 unzip: $(OBJU)
-	$(CC) -o unzip $(LFLAGS1) $(OBJU) $(LDFLAGS)
+	$(CC) -o unzip $(LFLAGS1) $(LDFLAGS) $(OBJU)
 
 funzip: $(OBJF)
-	$(CC) -o funzip $(LFLAGS1) $(OBJF) $(LDFLAGS)
+	$(CC) -o funzip $(LFLAGS1) $(LDFLAGS) $(OBJF)
 
 UNZIPS = unzip funzip