workaround osx compiler bug
authorPasi Mankinen <pasi.t.mankinen@student.jyu.fi>
Fri, 13 Apr 2012 23:28:19 +0000 (07:28 +0800)
committerAndy Green <andy.green@linaro.org>
Fri, 13 Apr 2012 23:30:25 +0000 (07:30 +0800)
Signed-off-by: Pasi Mankinen <pasi.t.mankinen@student.jyu.fi>
lib/handshake.c

index 3455b39..f343da9 100644 (file)
@@ -126,8 +126,10 @@ handshake_00(struct libwebsocket_context *context, struct libwebsocket *wsi)
        if (wsi->ssl)
                LWS_CPYAPP(p, "\x0d\x0aSec-WebSocket-Location: wss://");
        else
-#endif
                LWS_CPYAPP(p, "\x0d\x0aSec-WebSocket-Location: ws://");
+#else
+       LWS_CPYAPP(p, "\x0d\x0aSec-WebSocket-Location: ws://");
+#endif
 
        LWS_CPYAPP_TOKEN(p, WSI_TOKEN_HOST);
        LWS_CPYAPP_TOKEN(p, WSI_TOKEN_GET_URI);