summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/recipes-extended/zsync/zsync-curl/fixes.patch
blob: 1ec4993a1ceb6e787a49544dd0071fd18a7dde75 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Upstream-Status: Submitted [https://github.com/probonopd/zsync-curl/pull/41]
Signed-off-by: Ross Burton <ross.burton@arm.com>

diff --git a/src/configure.ac b/src/configure.ac
index 10de8c4..6488140 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -9,7 +9,6 @@ AC_CONFIG_MACRO_DIR([autotools])
 AC_CANONICAL_HOST
 
 AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign check-news -Woverride -Wobsolete -Wportability -Wsyntax -Wunsupported])
-AM_MAINTAINER_MODE
 
 dnl --- Check for programs
 AC_PROG_CC
@@ -23,6 +22,7 @@ AS_IF([test "x$enable_profile" = "xyes"], [
    ZS_CFLAGS="${ZS_CFLAGS} -pg" ])
 
 dnl --- Header files, typedefs, structures, libraries
+AC_USE_SYSTEM_EXTENSIONS
 AC_C_CONST
 AC_HEADER_STDC
 # string.h, memory.h, stdlib.h both included in the default header checks
@@ -55,10 +55,6 @@ case $host_os in
        host_os_mingw32=yes
        LIBS="${LIBS} -lwsock32"
        ;;
-   *)
-       AC_DEFINE([_XOPEN_SOURCE], 600, [Enable POSIX extensions if present])
-       AC_DEFINE([_BSD_SOURCE],1, [Enable BSD extensions if present])
-       ;;
 esac
 AM_CONDITIONAL([MINGW32], test "x$host_os_mingw32" = "xyes")
 
diff --git a/src/librcksum/Makefile.am b/src/librcksum/Makefile.am
index f4fce72..47754eb 100644
--- a/src/librcksum/Makefile.am
+++ b/src/librcksum/Makefile.am
@@ -1,4 +1,4 @@
-
+AM_CPPFLAGS = "-I$(top_srcdir)"
 
 noinst_LIBRARIES = librcksum.a
 
diff --git a/src/librcksum/md4.h b/src/librcksum/md4.h
index e90603a..0ed7485 100644
--- a/src/librcksum/md4.h
+++ b/src/librcksum/md4.h
@@ -18,11 +18,8 @@
 
 #include "zsglobal.h"
 
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#else
+#include <stdint.h>
 #include <sys/types.h>
-#endif
 
 #define	MD4_BLOCK_LENGTH		64
 #define	MD4_DIGEST_LENGTH		16
diff --git a/src/libzsync/Makefile.am b/src/libzsync/Makefile.am
index 0a6ae85..33a5951 100644
--- a/src/libzsync/Makefile.am
+++ b/src/libzsync/Makefile.am
@@ -1,3 +1,4 @@
+AM_CPPFLAGS = "-I$(top_srcdir)"
 
 noinst_LIBRARIES = libzsync.a
 
diff --git a/src/libzsync/sha1.h b/src/libzsync/sha1.h
index 3946505..87f3794 100644
--- a/src/libzsync/sha1.h
+++ b/src/libzsync/sha1.h
@@ -11,11 +11,8 @@
 
 #include "config.h"
 
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#else
+#include <stdint.h>
 #include <sys/types.h>
-#endif
 
 #define	SHA1_BLOCK_LENGTH		64
 #define	SHA1_DIGEST_LENGTH		20
diff --git a/src/libzsync/zmap.c b/src/libzsync/zmap.c
index f052dba..030b2a5 100644
--- a/src/libzsync/zmap.c
+++ b/src/libzsync/zmap.c
@@ -28,9 +28,6 @@
 #include <string.h>
 #include <sys/types.h>
 #include <arpa/inet.h>
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
 
 #ifdef WITH_DMALLOC
 # include <dmalloc.h>
diff --git a/src/make.c b/src/make.c
index 191b527..ba7f3a9 100644
--- a/src/make.c
+++ b/src/make.c
@@ -28,9 +28,6 @@
 #include <time.h>
 
 #include <arpa/inet.h>
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>