7d1ac36f32f35df5b49c007b072af2784c305159 braney Thu Apr 6 15:06:11 2017 -0700 add missing #ifdef USE_SSL diff --git src/lib/udc.c src/lib/udc.c index 6749ca6..fa5cfb9 100644 --- src/lib/udc.c +++ src/lib/udc.c @@ -24,31 +24,33 @@ * for each block of the file that has been fetched. Currently the block size is 8K. */ #include <sys/file.h> #include "common.h" #include "hash.h" #include "obscure.h" #include "bits.h" #include "linefile.h" #include "portable.h" #include "sig.h" #include "net.h" #include "cheapcgi.h" #include "udc.h" #include "hex.h" #include <dirent.h> +#ifdef USE_SSL #include <openssl/sha.h> +#endif /* The stdio stream we'll use to output statistics on file i/o. Off by default. */ FILE *udcLogStream = NULL; void udcSetLog(FILE *fp) /* Turn on logging of file i/o. * For each UDC file two lines are written. One line for the open, and one line for the close. * The Open line just has the URL being opened. * The Close line has the the URL plus a bunch of counts of the number of seeks, reads, and writes * for the following four files: the udc bitmap, the udc sparse data, the incoming calls * to the UDC layer, and the network connection to the (possibly) remote file. * There are two additional counts: the number of socket connects, and the * number of times a socket is reused instead of closed and reopened. */ {