fixes solaris build

Sat, 21 Jan 2017 17:05:23 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 21 Jan 2017 17:05:23 +0100
changeset 153
85320d8b5d5c
parent 152
8b85c5face66
child 155
36cd2e280386

fixes solaris build

src/server/daemon/event_solaris.c file | annotate | diff | comparison | revisions
src/server/daemon/websocket.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/event_solaris.c	Sat Jan 21 16:40:59 2017 +0100
+++ b/src/server/daemon/event_solaris.c	Sat Jan 21 17:05:23 2017 +0100
@@ -158,7 +158,7 @@
 int ev_pollout(event_handler_t *h, int fd, event_t *event) {
     event->object = (intptr_t)fd;
     event->events = POLLOUT;
-    event->poll EVENT_POLLOUT;
+    event->poll = EVENT_POLLOUT;
     return port_associate(
             ev_get_port(h),
             PORT_SOURCE_FD,
--- a/src/server/daemon/websocket.c	Sat Jan 21 16:40:59 2017 +0100
+++ b/src/server/daemon/websocket.c	Sat Jan 21 17:05:23 2017 +0100
@@ -304,7 +304,7 @@
 
 NSAPI_PUBLIC int websocket_send_text(SYS_NETFD csd, char *msg, size_t len) {
     char frame[WS_FRAMEHEADER_BUFLEN];
-    frame[0] = 0b10000001;
+    frame[0] = 129; // 0b10000001
     size_t hlen;
     if(len < 126) {
         frame[1] = (char)len;

mercurial