Skip to content

Commit 641a5ec

Browse files
authored
Merge pull request ASPLes#23 from cableramki/master
Fixed build on Mac.
2 parents 632b22d + 3c286b7 commit 641a5ec

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

autogen.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626

2727
PACKAGE="Lib noPoll: a websocket toolkit"
28+
OS=`uname -s`
2829

2930
(automake --version) < /dev/null > /dev/null 2>&1 || {
3031
echo;
@@ -44,7 +45,11 @@ echo "Generating configuration files for $PACKAGE, please wait...."
4445
echo;
4546

4647
touch NEWS README AUTHORS ChangeLog
48+
if [ "${OS}" = "Darwin" ] ; then
49+
glibtoolize --force;
50+
else
4751
libtoolize --force;
52+
fi
4853
aclocal $ACLOCAL_FLAGS;
4954
autoheader --warnings=error
5055
automake --add-missing -Werror;

test/nopoll-regression-client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,8 +1678,8 @@ nopoll_bool test_17_send_and_receive_test (noPollCtx * ctx, noPollConn * conn, n
16781678

16791679
/* printf ("Test 17: sending partial content..\n"); */
16801680
_socket = nopoll_conn_socket (conn);
1681-
buffer[0] = 129;
1682-
buffer[1] = 150;
1681+
buffer[0] = 126;
1682+
buffer[1] = 127;
16831683
send (_socket, buffer, 2, 0);
16841684

16851685
if (read_after_header) {

0 commit comments

Comments
 (0)