diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-10-05 10:57:45 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-10-05 16:59:14 +0300 |
commit | 86436fce2fe2364bbc9e705ddc92d7733fc8ed75 (patch) | |
tree | 9193dddcf9217194e1ac2e74ce920ecc1c349853 /libfetch/http.c | |
parent | 9dc6278c7b4ef41810b264ca99b597634511bda1 (diff) | |
download | apk-tools-86436fce2fe2364bbc9e705ddc92d7733fc8ed75.tar.gz apk-tools-86436fce2fe2364bbc9e705ddc92d7733fc8ed75.tar.bz2 apk-tools-86436fce2fe2364bbc9e705ddc92d7733fc8ed75.tar.xz apk-tools-86436fce2fe2364bbc9e705ddc92d7733fc8ed75.zip |
build and use bundled libfetch natively
Diffstat (limited to 'libfetch/http.c')
-rw-r--r-- | libfetch/http.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libfetch/http.c b/libfetch/http.c index d0882e2..6cf5aac 100644 --- a/libfetch/http.c +++ b/libfetch/http.c @@ -63,24 +63,12 @@ * SUCH DAMAGE. */ -#if defined(__linux__) || defined(__MINT__) || defined(__FreeBSD_kernel__) -/* Keep this down to Linux or MiNT, it can create surprises elsewhere. */ -/* - __FreeBSD_kernel__ is defined for GNU/kFreeBSD. - See http://glibc-bsd.alioth.debian.org/porting/PORTING . -*/ -#define _GNU_SOURCE -#endif - /* Needed for gmtime_r on Interix */ #define _REENTRANT #if HAVE_CONFIG_H #include "config.h" #endif -#ifndef NETBSD -#include <nbcompat.h> -#endif #include <sys/types.h> #include <sys/socket.h> @@ -89,11 +77,7 @@ #include <errno.h> #include <locale.h> #include <stdarg.h> -#ifndef NETBSD -#include <nbcompat/stdio.h> -#else #include <stdio.h> -#endif #include <stdlib.h> #include <string.h> #include <time.h> @@ -101,13 +85,7 @@ #include <netinet/in.h> #include <netinet/tcp.h> - -#ifndef NETBSD -#include <nbcompat/netdb.h> -#else #include <netdb.h> -#endif - #include <arpa/inet.h> #include "fetch.h" |