From: wessels <> Date: Tue, 6 Jan 1998 09:53:03 +0000 (+0000) Subject: adding X-Git-Tag: SQUID_3_0_PRE1~4245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026cbcf998fefe0d32a9706d6ad901f2e78970d4;p=thirdparty%2Fsquid.git adding --- diff --git a/lib/md5.c b/lib/md5.c index 8325863574..60b9cc4e09 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -29,6 +29,14 @@ */ #include "config.h" + +/* + * Only compile md5.c if we need it. Its needed for MD5 store keys + * and by the SNMP routines. + */ + +#if STORE_KEY_MD5 || SQUID_SNMP + #include "md5.h" /* @@ -333,3 +341,5 @@ MD5_memset(char *output, int value, unsigned int len) for (i = 0; i < len; i++) output[i] = (char) value; } + +#endif /* STORE_KEY_MD5 || SQUID_SNMP */ diff --git a/lib/splay.c b/lib/splay.c index e644cab867..c89728ef83 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -1,6 +1,8 @@ #include "config.h" +#if USE_SPLAY_TREE + #if HAVE_STDIO_H #include #endif @@ -153,4 +155,6 @@ main(int argc, char *argv[]) splay_print(top, printint); return 0; } -#endif +#endif /* DRIVER */ + +#endif /* USE_SPLAY_TREE */ diff --git a/lib/stub_memaccount.c b/lib/stub_memaccount.c new file mode 100644 index 0000000000..a012c07b2c --- /dev/null +++ b/lib/stub_memaccount.c @@ -0,0 +1,6 @@ +/* Stub function for programs not implementing statMemoryAccounted */ +#include +int statMemoryAccounted(void) +{ + return -1; +}