diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-15 20:05:23 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-15 20:05:23 +0000 |
| commit | 680473dd328698068fb65245e401035370667530 (patch) | |
| tree | 44c37c369e446bba56710950c6946899c9651c90 | |
| parent | 58096449c6044b7aade5cd41cfd71c6bec1d273d (diff) | |
| download | luasocket-680473dd328698068fb65245e401035370667530.tar.gz luasocket-680473dd328698068fb65245e401035370667530.tar.bz2 luasocket-680473dd328698068fb65245e401035370667530.zip | |
Runs on Linux.
| -rw-r--r-- | src/udp.c | 8 | ||||
| -rw-r--r-- | test/mimetest.lua | 2 | ||||
| -rw-r--r-- | test/testclnt.lua | 2 | ||||
| -rw-r--r-- | test/testsrvr.lua | 2 |
4 files changed, 11 insertions, 3 deletions
| @@ -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" | |||
| 8 | local eqptest = "qptest.bin2" | 8 | local eqptest = "qptest.bin2" |
| 9 | local dqptest = "qptest.bin3" | 9 | local dqptest = "qptest.bin3" |
| 10 | 10 | ||
| 11 | local b64test = "luasocket.dylib" | 11 | local b64test = "luasocket.so" |
| 12 | local eb64test = "b64test.bin" | 12 | local eb64test = "b64test.bin" |
| 13 | local db64test = "b64test.bin2" | 13 | local 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 @@ | |||
| 1 | require"socket" | 1 | socket = require"socket" |
| 2 | 2 | ||
| 3 | host = host or "localhost" | 3 | host = host or "localhost" |
| 4 | port = port or "8080" | 4 | port = 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 @@ | |||
| 1 | require"socket" | 1 | socket = require"socket" |
| 2 | 2 | ||
| 3 | host = host or "localhost" | 3 | host = host or "localhost" |
| 4 | port = port or "8080" | 4 | port = port or "8080" |
