aboutsummaryrefslogtreecommitdiff
path: root/src/usocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/usocket.h')
-rw-r--r--src/usocket.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usocket.h b/src/usocket.h
index 034ae74..85b7caa 100644
--- a/src/usocket.h
+++ b/src/usocket.h
@@ -1,10 +1,11 @@
1#ifndef USOCKET_H
2#define USOCKET_H
1/*=========================================================================*\ 3/*=========================================================================*\
2* Socket compatibilization module for Unix 4* Socket compatibilization module for Unix
5* LuaSocket toolkit
3* 6*
4* RCS ID: $Id$ 7* RCS ID: $Id$
5\*=========================================================================*/ 8\*=========================================================================*/
6#ifndef USOCKET_H
7#define USOCKET_H
8 9
9/*=========================================================================*\ 10/*=========================================================================*\
10* BSD include files 11* BSD include files
@@ -30,9 +31,11 @@
30/* IP stuff*/ 31/* IP stuff*/
31#include <netinet/in.h> 32#include <netinet/in.h>
32#include <arpa/inet.h> 33#include <arpa/inet.h>
34/* TCP options (nagle algorithm disable) */
35#include <netinet/tcp.h>
33 36
34#ifdef __APPLE__ 37#ifdef __APPLE__
35/* for some reason socklen_t is not defined in mac os x */ 38/* for some reason socklen_t is not defined in Mac Os X */
36typedef int socklen_t; 39typedef int socklen_t;
37#endif 40#endif
38 41