summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98b9542)
raw | patch | inline | side by side (parent: 98b9542)
author | octo <octo> | |
Fri, 21 Apr 2006 07:13:49 +0000 (07:13 +0000) | ||
committer | octo <octo> | |
Fri, 21 Apr 2006 07:13:49 +0000 (07:13 +0000) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index c410dc43055bb855195ab33b31d34cfeadcb225f..c731908a291cb05dfa75ce000c369892757baac7 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
static char *user = NULL;
static char *pass = NULL;
-#if APACHE_HAVE_READ
+#if HAVE_LIBCURL
static CURL *curl = NULL;
static char apache_buffer[4096];
static int apache_buffer_len = 0;
static char apache_curl_error[CURL_ERROR_SIZE];
-#endif
+#endif /* HAVE_LIBCURL */
/* Limit to 2^27 bytes/s. That's what a gigabit-ethernet link can handle, in
* theory. */
};
static int config_keys_num = 3;
-
+#if HAVE_LIBCURL
static size_t apache_curl_callback (void *buf, size_t size, size_t nmemb, void *stream)
{
size_t len = size * nmemb;
@@ -101,6 +101,7 @@ static size_t apache_curl_callback (void *buf, size_t size, size_t nmemb, void *
return (len);
}
+#endif /* HAVE_LIBCURL */
static int config_set (char **var, char *value)
{
static void init (void)
{
-#if APACHE_HAVE_READ
+#if HAVE_LIBCURL
static char credentials[1024];
if (curl != NULL)
{
curl_easy_setopt (curl, CURLOPT_URL, url);
}
-#endif /* APACHE_HAVE_READ */
+#endif /* HAVE_LIBCURL */
}
static void bytes_write (char *host, char *inst, char *val)