]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix NCSA auth helper include sequence and wrapping
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Jul 2009 12:36:53 +0000 (00:36 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Jul 2009 12:36:53 +0000 (00:36 +1200)
helpers/basic_auth/NCSA/crypt_md5.c
helpers/basic_auth/NCSA/ncsa_auth.c

index d366e6f4463502dcda1f07f2d593c23e618ee9b1..a80ef336770bb8a1db58dc8ebf9ca3221fc95bdf 100644 (file)
  * Origin: Id: crypt.c,v 1.3 1995/05/30 05:42:22 rgrimes Exp
  *
  */
+#include "config.h"
 
+#if HAVE_STRING_H
 #include <string.h>
+#endif
+#if HAVE_STDIO_H
 #include <stdio.h>
-#include "config.h"
-#include "md5.h"
+#endif
 
+#include "md5.h"
 #include "crypt_md5.h"
 
 static unsigned char itoa64[] =        /* 0 ... 63 => ascii - 64 */
index 3048f4c219d9d2cb98e950ffadee423aa647d9e4..12aa83f23739568da834f7d8f69a27f6bd70c857 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "config.h"
+
 #if HAVE_STDIO_H
 #include <stdio.h>
 #endif