]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
adding
authorwessels <>
Tue, 6 Jan 1998 09:53:03 +0000 (09:53 +0000)
committerwessels <>
Tue, 6 Jan 1998 09:53:03 +0000 (09:53 +0000)
lib/md5.c
lib/splay.c
lib/stub_memaccount.c [new file with mode: 0644]

index 8325863574470f7bfd788542b085c058f19aec3b..60b9cc4e09b715784a5fac05c0592423df30548e 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
  */
 
 #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 */
index e644cab867b08b69eb15acf5f5b8483b127bbad1..c89728ef8370081434869300dd8a71c78ab80bae 100644 (file)
@@ -1,6 +1,8 @@
 
 #include "config.h"
 
+#if USE_SPLAY_TREE
+
 #if HAVE_STDIO_H
 #include <stdio.h>
 #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 (file)
index 0000000..a012c07
--- /dev/null
@@ -0,0 +1,6 @@
+/* Stub function for programs not implementing statMemoryAccounted */
+#include <config.h>
+int statMemoryAccounted(void)
+{
+  return -1;
+}