diff options
author | Guido van Rossum <guido@python.org> | 1996-12-05 23:43:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-05 23:43:35 (GMT) |
commit | a376cc5cc86c62f912886c4002ed1a9b3b213b88 (patch) | |
tree | d505b439cc8f6aac1ba75374b6652857273274c0 /Modules/fcntlmodule.c | |
parent | 60fca2c90fe4d00715f4ae28d68560e67955ab9b (diff) | |
download | cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.zip cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.gz cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.bz2 |
Keep gcc -Wall happy.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r-- | Modules/fcntlmodule.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index ae6bcdd..d08123a 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -34,6 +34,14 @@ PERFORMANCE OF THIS SOFTWARE. #include "allobjects.h" #include "modsupport.h" +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +#ifdef HAVE_SYS_FILE_H +#include <sys/file.h> +#endif + #include <fcntl.h> @@ -147,7 +155,6 @@ fcntl_flock(self, args) int fd; int code; int ret; - FILE *f; if (!getargs(args, "(ii)", &fd, &code)) return NULL; @@ -195,7 +202,6 @@ fcntl_lockf(self, args) object *args; { int fd, code, len = 0, start = 0, whence = 0, ret; - FILE *f; if (!PyArg_ParseTuple(args, "ii|iii", &fd, &code, &len, &start, &whence)) |