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/common.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/common.c')
-rw-r--r-- | libfetch/common.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libfetch/common.c b/libfetch/common.c index c1e1587..1fbd0d4 100644 --- a/libfetch/common.c +++ b/libfetch/common.c @@ -33,32 +33,19 @@ #if HAVE_CONFIG_H #include "config.h" #endif -#ifndef NETBSD -#include <nbcompat.h> -#endif +#include <poll.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/uio.h> -#if HAVE_POLL_H -#include <poll.h> -#elif HAVE_SYS_POLL_H -#include <sys/poll.h> -#endif #include <netinet/in.h> #include <arpa/inet.h> #include <ctype.h> #include <errno.h> -#if defined(HAVE_INTTYPES_H) || defined(NETBSD) #include <inttypes.h> -#endif -#ifndef NETBSD -#include <nbcompat/netdb.h> -#else #include <netdb.h> -#endif #include <pwd.h> #include <stdarg.h> #include <stdlib.h> |