]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-110749: fix unistd.h import in file_tokenizer.c (#110750)
authorFilipe Laíns <lains@riseup.net>
Thu, 12 Oct 2023 05:52:13 +0000 (06:52 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 05:52:13 +0000 (07:52 +0200)
Parser/tokenizer/file_tokenizer.c

index 05ab5a02f53bdd384ad9afc5baed230e85157309..2750527da484aa59d932cbb1594a083a68e25600 100644 (file)
@@ -1,13 +1,13 @@
-#ifdef HAVE_UNISTD_H
-#  include <unistd.h>             // read()
-#endif
-
 #include "Python.h"
 #include "pycore_call.h"
 #include "pycore_import.h"
 #include "pycore_fileutils.h"
 #include "errcode.h"
 
+#ifdef HAVE_UNISTD_H
+#  include <unistd.h>             // lseek(), read()
+#endif
+
 #include "helpers.h"
 #include "../lexer/state.h"
 #include "../lexer/lexer.h"