1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* ksutil.h, ksutil.c: #ifdef so we can build without libcurl or

fake-curl.
This commit is contained in:
David Shaw 2005-05-04 13:34:25 +00:00
parent 049195f9e0
commit d9d902dffb
3 changed files with 19 additions and 4 deletions

View file

@ -24,10 +24,13 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_LIBCURL
#include <curl/curl.h>
#else
#ifdef FAKE_CURL
#include "curl-shim.h"
#else
#include <curl/curl.h>
#endif
#endif
#include "keyserver.h"
#include "ksutil.h"
@ -318,6 +321,7 @@ print_nocr(FILE *stream,const char *str)
}
}
#if defined (HAVE_LIBCURL) || defined (FAKE_CURL)
int
curl_err_to_gpg_err(CURLcode error)
{
@ -383,3 +387,4 @@ curl_writer(const void *ptr,size_t size,size_t nmemb,void *cw_ctx)
return size*nmemb;
}
#endif