changeset 1520:2202238be236

fix DISABLE_COOKIES (reported by furaisanjin)
author corvid <corvid@lavabit.com>
date Thu, 14 Jan 2010 17:25:56 +0000
parents 6fcb13a8b680
children 96f19eb5687f
files configure.in src/cookies.c
diffstat 2 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Thu Jan 14 04:18:33 2010 +0000
+++ b/configure.in	Thu Jan 14 17:25:56 2010 +0000
@@ -417,6 +417,7 @@
 dnl
 if test "x$enable_cookies" = "xno" ; then
   CFLAGS="$CFLAGS -DDISABLE_COOKIES"
+  CXXFLAGS="$CXXFLAGS -DDISABLE_COOKIES"
 fi
 if test "x$enable_ipv6" = "xyes" ; then
   CFLAGS="$CFLAGS -DENABLE_IPV6"
--- a/src/cookies.c	Thu Jan 14 04:18:33 2010 +0000
+++ b/src/cookies.c	Thu Jan 14 17:25:56 2010 +0000
@@ -10,10 +10,9 @@
  * (at your option) any later version.
  */
 
-/* Handling of cookies takes place here.
- * This implementation aims to follow RFC 2965:
- * http://www.ietf.org/rfc/rfc2965.txt
- */
+/* Handling of cookies takes place here. */
+
+#include "msg.h"
 
 #ifdef DISABLE_COOKIES
 
@@ -37,7 +36,6 @@
 #include <ctype.h>
 #include <errno.h>
 
-#include "msg.h"
 #include "IO/Url.h"
 #include "list.h"
 #include "cookies.h"