summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2012-01-03 19:26:56 +0000
committerGiampaolo Rodola <g.rodola@gmail.com>2012-01-03 19:26:56 +0000
commitfcaff6ca53e0741e7d60b062e7a41df90c55432d (patch)
tree7883a259fe9dc0b77d9ce2a3790969f28ce1b7c9
parent40b92f2c4dce74477e0de4e0f073828a76bbc92c (diff)
downloadpysendfile-fcaff6ca53e0741e7d60b062e7a41df90c55432d.tar.gz
get rid of socket constants which are no longer needed
-rw-r--r--sendfilemodule.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sendfilemodule.c b/sendfilemodule.c
index c4d8798..7e2b60c 100644
--- a/sendfilemodule.c
+++ b/sendfilemodule.c
@@ -228,13 +228,6 @@ method_sendfile(PyObject *self, PyObject *args)
/* --- start Linux --- */
#elif defined (__linux__)
#include <sys/sendfile.h>
-#include <sys/socket.h>
-
-// these are taken from linux/socket.h, for some reason including
-// that file doesn't work here.
-#define SOL_TCP 6
-#define TCP_CORK 3
-
static PyObject *
method_sendfile(PyObject *self, PyObject *args, PyObject *kwdict)