summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.h
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_download.h')
-rw-r--r--libopkg/opkg_download.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libopkg/opkg_download.h b/libopkg/opkg_download.h
index 91b990e..39340ea 100644
--- a/libopkg/opkg_download.h
+++ b/libopkg/opkg_download.h
@@ -33,7 +33,12 @@ int opkg_download_pkg(pkg_t *pkg, const char *dir);
int opkg_prepare_url_for_install(const char *url, char **namep);
int opkg_verify_file (char *text_file, char *sig_file);
-#ifdef HAVE_CURL
+
+/* Curl cleanup function, does nothing unless opkg is configured with
+ * '--enable-curl'.
+ *
+ * This function is callable regardless of whether curl support is enabled in
+ * order to present a consistent API.
+ */
void opkg_curl_cleanup(void);
#endif
-#endif