summaryrefslogtreecommitdiff
path: root/libfetch/ftp.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-10-05 10:57:45 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-10-05 16:59:14 +0300
commit86436fce2fe2364bbc9e705ddc92d7733fc8ed75 (patch)
tree9193dddcf9217194e1ac2e74ce920ecc1c349853 /libfetch/ftp.c
parent9dc6278c7b4ef41810b264ca99b597634511bda1 (diff)
downloadapk-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/ftp.c')
-rw-r--r--libfetch/ftp.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libfetch/ftp.c b/libfetch/ftp.c
index 79dcbbc..af6a964 100644
--- a/libfetch/ftp.c
+++ b/libfetch/ftp.c
@@ -57,17 +57,9 @@
*
*/
-#ifdef __linux__
-/* Keep this down to Linux, it can create surprises else where. */
-#define _GNU_SOURCE
-#endif
-
#if HAVE_CONFIG_H
#include "config.h"
#endif
-#ifndef NETBSD
-#include <nbcompat.h>
-#endif
#include <sys/types.h>
#include <sys/socket.h>
@@ -78,17 +70,10 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
-#if defined(HAVE_INTTYPES_H) || defined(NETBSD)
#include <inttypes.h>
-#endif
#include <stdarg.h>
-#ifndef NETBSD
-#include <nbcompat/netdb.h>
-#include <nbcompat/stdio.h>
-#else
#include <netdb.h>
#include <stdio.h>
-#endif
#include <stdlib.h>
#include <string.h>
#include <time.h>