  }
 diff -ur lighttpd-1.4.28.orig/src/connections.c lighttpd-1.4.28/src/connections.c
 --- lighttpd-1.4.28.orig/src/connections.c	2010-08-17 18:04:38.000000000 +0900
-+++ lighttpd-1.4.28/src/connections.c	2011-06-17 19:29:57.000000000 +0900
++++ lighttpd-1.4.28/src/connections.c	2011-06-20 08:47:26.000000000 +0900
 @@ -1163,6 +1163,8 @@
  		}
  

 typedef enum { COND_RESULT_UNSET, COND_RESULT_FALSE, COND_RESULT_TRUE } cond_result_t;
diff -ur lighttpd-1.4.28.orig/src/connections-glue.c lighttpd-1.4.28/src/connections-glue.c
--- lighttpd-1.4.28.orig/src/connections-glue.c	2010-08-17 18:04:38.000000000 +0900
+++ lighttpd-1.4.28/src/connections-glue.c	2011-06-17 19:24:47.000000000 +0900
@@ -14,6 +14,7 @@
 	case CON_STATE_REQUEST_END: return "req-end";
 	case CON_STATE_RESPONSE_START: return "resp-start";

+AC_SUBST(WEBSOCKET_VERSION_CFLAGS)
+CFLAGS="$CFLAGS $WEBSOCKET_VERSION_CFLAGS"
+
 dnl openssl on solaris needs -lsocket -lnsl
 AC_SEARCH_LIBS(socket,socket)
 AC_SEARCH_LIBS(gethostbyname,nsl socket)
@@ -625,6 +692,17 @@
 do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
 do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
 
