]> 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 13:07:48 +0000 (01:07 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Jul 2009 13:07:48 +0000 (01:07 +1200)
helpers/basic_auth/NCSA/crypt_md5.c
helpers/basic_auth/NCSA/ncsa_auth.c

index d342fcedc40bca0c978123e0f25f996ae64e6e92..31287dc83a619cde2ff2635f088beb9dcb0810d4 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 7d690515d799155aff01aecff9d189a411100c55..68bf4dbd6ac4d88cbfda49eea2f04ee711da66a5 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "config.h"
+
 #if HAVE_STDIO_H
 #include <stdio.h>
 #endif