diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2011-04-18 17:58:17 +0000 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2011-04-18 17:58:17 +0000 |
commit | 8dff4a3f72543559eba1be49b8e0e98bb15ba610 (patch) | |
tree | 5e35b5757a6b9843f7a4964b58dad02c9e964a49 | |
parent | d4ab72aa7318f741735d6c2cf749f49992ef1462 (diff) | |
download | pysendfile-8dff4a3f72543559eba1be49b8e0e98bb15ba610.tar.gz |
C arg types again
-rw-r--r-- | sendfilemodule.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sendfilemodule.c b/sendfilemodule.c index d050305..27e24c5 100644 --- a/sendfilemodule.c +++ b/sendfilemodule.c @@ -231,7 +231,11 @@ static PyObject * method_sendfile(PyObject *self, PyObject *args, PyObject *kwdict) { int out_fd, in_fd; +#if defined(HAVE_LARGEFILE_SUPPORT) off_t offset; +#else + long offset; +#endif size_t nbytes; char * head = NULL; size_t head_len = 0; @@ -249,10 +253,10 @@ method_sendfile(PyObject *self, PyObject *args, PyObject *kwdict) "trailer", "flags", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwdict, -#if defined(HAVE_LARGEFILE_SUPPORT) - "iiLL|s#s#i:sendfile", +#if defined(HAVE_LARGEFILE_SUPPORT)defined(HAVE_LARGEFILE_SUPPORT) + "iiLI|s#s#i:sendfile", #else - "iill|s#s#i:sendfile", + "iilI|s#s#i:sendfile", #endif keywords, &out_fd, &in_fd, &offset, &nbytes, &head, &head_len, &tail, |