aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-15 20:05:23 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-15 20:05:23 +0000
commit680473dd328698068fb65245e401035370667530 (patch)
tree44c37c369e446bba56710950c6946899c9651c90
parent58096449c6044b7aade5cd41cfd71c6bec1d273d (diff)
downloadluasocket-680473dd328698068fb65245e401035370667530.tar.gz
luasocket-680473dd328698068fb65245e401035370667530.tar.bz2
luasocket-680473dd328698068fb65245e401035370667530.zip
Runs on Linux.
-rw-r--r--src/udp.c8
-rw-r--r--test/mimetest.lua2
-rw-r--r--test/testclnt.lua2
-rw-r--r--test/testsrvr.lua2
4 files changed, 11 insertions, 3 deletions
diff --git a/src/udp.c b/src/udp.c
index 51d6402..512cc0b 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -15,6 +15,14 @@
15#include "options.h" 15#include "options.h"
16#include "udp.h" 16#include "udp.h"
17 17
18/* min and max macros */
19#ifndef MIN
20#define MIN(x, y) ((x) < (y) ? x : y)
21#endif
22#ifndef MAX
23#define MAX(x, y) ((x) > (y) ? x : y)
24#endif
25
18/*=========================================================================*\ 26/*=========================================================================*\
19* Internal function prototypes 27* Internal function prototypes
20\*=========================================================================*/ 28\*=========================================================================*/
diff --git a/test/mimetest.lua b/test/mimetest.lua
index 2d5bce6..808c402 100644
--- a/test/mimetest.lua
+++ b/test/mimetest.lua
@@ -8,7 +8,7 @@ local qptest = "qptest.bin"
8local eqptest = "qptest.bin2" 8local eqptest = "qptest.bin2"
9local dqptest = "qptest.bin3" 9local dqptest = "qptest.bin3"
10 10
11local b64test = "luasocket.dylib" 11local b64test = "luasocket.so"
12local eb64test = "b64test.bin" 12local eb64test = "b64test.bin"
13local db64test = "b64test.bin2" 13local db64test = "b64test.bin2"
14 14
diff --git a/test/testclnt.lua b/test/testclnt.lua
index 14d3484..6735113 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -1,4 +1,4 @@
1require"socket" 1socket = require"socket"
2 2
3host = host or "localhost" 3host = host or "localhost"
4port = port or "8080" 4port = port or "8080"
diff --git a/test/testsrvr.lua b/test/testsrvr.lua
index cf94b45..6e786c8 100644
--- a/test/testsrvr.lua
+++ b/test/testsrvr.lua
@@ -1,4 +1,4 @@
1require"socket" 1socket = require"socket"
2 2
3host = host or "localhost" 3host = host or "localhost"
4port = port or "8080" 4port = port or "8080"