1*69721092SAndrew GeisslerUpstream-Status: Submitted [https://github.com/probonopd/zsync-curl/pull/41] 2*69721092SAndrew GeisslerSigned-off-by: Ross Burton <ross.burton@arm.com> 3*69721092SAndrew Geissler 4*69721092SAndrew Geisslerdiff --git a/src/configure.ac b/src/configure.ac 5*69721092SAndrew Geisslerindex 10de8c4..6488140 100644 6*69721092SAndrew Geissler--- a/src/configure.ac 7*69721092SAndrew Geissler+++ b/src/configure.ac 8*69721092SAndrew Geissler@@ -9,7 +9,6 @@ AC_CONFIG_MACRO_DIR([autotools]) 9*69721092SAndrew Geissler AC_CANONICAL_HOST 10*69721092SAndrew Geissler 11*69721092SAndrew Geissler AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign check-news -Woverride -Wobsolete -Wportability -Wsyntax -Wunsupported]) 12*69721092SAndrew Geissler-AM_MAINTAINER_MODE 13*69721092SAndrew Geissler 14*69721092SAndrew Geissler dnl --- Check for programs 15*69721092SAndrew Geissler AC_PROG_CC 16*69721092SAndrew Geissler@@ -23,6 +22,7 @@ AS_IF([test "x$enable_profile" = "xyes"], [ 17*69721092SAndrew Geissler ZS_CFLAGS="${ZS_CFLAGS} -pg" ]) 18*69721092SAndrew Geissler 19*69721092SAndrew Geissler dnl --- Header files, typedefs, structures, libraries 20*69721092SAndrew Geissler+AC_USE_SYSTEM_EXTENSIONS 21*69721092SAndrew Geissler AC_C_CONST 22*69721092SAndrew Geissler AC_HEADER_STDC 23*69721092SAndrew Geissler # string.h, memory.h, stdlib.h both included in the default header checks 24*69721092SAndrew Geissler@@ -55,10 +55,6 @@ case $host_os in 25*69721092SAndrew Geissler host_os_mingw32=yes 26*69721092SAndrew Geissler LIBS="${LIBS} -lwsock32" 27*69721092SAndrew Geissler ;; 28*69721092SAndrew Geissler- *) 29*69721092SAndrew Geissler- AC_DEFINE([_XOPEN_SOURCE], 600, [Enable POSIX extensions if present]) 30*69721092SAndrew Geissler- AC_DEFINE([_BSD_SOURCE],1, [Enable BSD extensions if present]) 31*69721092SAndrew Geissler- ;; 32*69721092SAndrew Geissler esac 33*69721092SAndrew Geissler AM_CONDITIONAL([MINGW32], test "x$host_os_mingw32" = "xyes") 34*69721092SAndrew Geissler 35*69721092SAndrew Geisslerdiff --git a/src/librcksum/Makefile.am b/src/librcksum/Makefile.am 36*69721092SAndrew Geisslerindex f4fce72..47754eb 100644 37*69721092SAndrew Geissler--- a/src/librcksum/Makefile.am 38*69721092SAndrew Geissler+++ b/src/librcksum/Makefile.am 39*69721092SAndrew Geissler@@ -1,4 +1,4 @@ 40*69721092SAndrew Geissler- 41*69721092SAndrew Geissler+AM_CPPFLAGS = "-I$(top_srcdir)" 42*69721092SAndrew Geissler 43*69721092SAndrew Geissler noinst_LIBRARIES = librcksum.a 44*69721092SAndrew Geissler 45*69721092SAndrew Geisslerdiff --git a/src/librcksum/md4.h b/src/librcksum/md4.h 46*69721092SAndrew Geisslerindex e90603a..0ed7485 100644 47*69721092SAndrew Geissler--- a/src/librcksum/md4.h 48*69721092SAndrew Geissler+++ b/src/librcksum/md4.h 49*69721092SAndrew Geissler@@ -18,11 +18,8 @@ 50*69721092SAndrew Geissler 51*69721092SAndrew Geissler #include "zsglobal.h" 52*69721092SAndrew Geissler 53*69721092SAndrew Geissler-#ifdef HAVE_INTTYPES_H 54*69721092SAndrew Geissler-#include <inttypes.h> 55*69721092SAndrew Geissler-#else 56*69721092SAndrew Geissler+#include <stdint.h> 57*69721092SAndrew Geissler #include <sys/types.h> 58*69721092SAndrew Geissler-#endif 59*69721092SAndrew Geissler 60*69721092SAndrew Geissler #define MD4_BLOCK_LENGTH 64 61*69721092SAndrew Geissler #define MD4_DIGEST_LENGTH 16 62*69721092SAndrew Geisslerdiff --git a/src/libzsync/Makefile.am b/src/libzsync/Makefile.am 63*69721092SAndrew Geisslerindex 0a6ae85..33a5951 100644 64*69721092SAndrew Geissler--- a/src/libzsync/Makefile.am 65*69721092SAndrew Geissler+++ b/src/libzsync/Makefile.am 66*69721092SAndrew Geissler@@ -1,3 +1,4 @@ 67*69721092SAndrew Geissler+AM_CPPFLAGS = "-I$(top_srcdir)" 68*69721092SAndrew Geissler 69*69721092SAndrew Geissler noinst_LIBRARIES = libzsync.a 70*69721092SAndrew Geissler 71*69721092SAndrew Geisslerdiff --git a/src/libzsync/sha1.h b/src/libzsync/sha1.h 72*69721092SAndrew Geisslerindex 3946505..87f3794 100644 73*69721092SAndrew Geissler--- a/src/libzsync/sha1.h 74*69721092SAndrew Geissler+++ b/src/libzsync/sha1.h 75*69721092SAndrew Geissler@@ -11,11 +11,8 @@ 76*69721092SAndrew Geissler 77*69721092SAndrew Geissler #include "config.h" 78*69721092SAndrew Geissler 79*69721092SAndrew Geissler-#ifdef HAVE_INTTYPES_H 80*69721092SAndrew Geissler-#include <inttypes.h> 81*69721092SAndrew Geissler-#else 82*69721092SAndrew Geissler+#include <stdint.h> 83*69721092SAndrew Geissler #include <sys/types.h> 84*69721092SAndrew Geissler-#endif 85*69721092SAndrew Geissler 86*69721092SAndrew Geissler #define SHA1_BLOCK_LENGTH 64 87*69721092SAndrew Geissler #define SHA1_DIGEST_LENGTH 20 88*69721092SAndrew Geisslerdiff --git a/src/libzsync/zmap.c b/src/libzsync/zmap.c 89*69721092SAndrew Geisslerindex f052dba..030b2a5 100644 90*69721092SAndrew Geissler--- a/src/libzsync/zmap.c 91*69721092SAndrew Geissler+++ b/src/libzsync/zmap.c 92*69721092SAndrew Geissler@@ -28,9 +28,6 @@ 93*69721092SAndrew Geissler #include <string.h> 94*69721092SAndrew Geissler #include <sys/types.h> 95*69721092SAndrew Geissler #include <arpa/inet.h> 96*69721092SAndrew Geissler-#ifdef HAVE_INTTYPES_H 97*69721092SAndrew Geissler-#include <inttypes.h> 98*69721092SAndrew Geissler-#endif 99*69721092SAndrew Geissler 100*69721092SAndrew Geissler #ifdef WITH_DMALLOC 101*69721092SAndrew Geissler # include <dmalloc.h> 102*69721092SAndrew Geisslerdiff --git a/src/make.c b/src/make.c 103*69721092SAndrew Geisslerindex 191b527..ba7f3a9 100644 104*69721092SAndrew Geissler--- a/src/make.c 105*69721092SAndrew Geissler+++ b/src/make.c 106*69721092SAndrew Geissler@@ -28,9 +28,6 @@ 107*69721092SAndrew Geissler #include <time.h> 108*69721092SAndrew Geissler 109*69721092SAndrew Geissler #include <arpa/inet.h> 110*69721092SAndrew Geissler-#ifdef HAVE_INTTYPES_H 111*69721092SAndrew Geissler-#include <inttypes.h> 112*69721092SAndrew Geissler-#endif 113*69721092SAndrew Geissler 114*69721092SAndrew Geissler #include <sys/types.h> 115*69721092SAndrew Geissler #include <sys/stat.h> 116