summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorFilipe LaĆ­ns <lains@riseup.net>2023-10-12 05:52:13 (GMT)
committerGitHub <noreply@github.com>2023-10-12 05:52:13 (GMT)
commit23645420dcc4f3b7b2ec4045ef6ac126c37a98c2 (patch)
treebdadad3f4e51e048cb37cb2cc98f2e4a412b222b /Parser
parent5257ade0bc9b53471227d0e67999df7c8ad633a7 (diff)
downloadcpython-23645420dcc4f3b7b2ec4045ef6ac126c37a98c2.zip
cpython-23645420dcc4f3b7b2ec4045ef6ac126c37a98c2.tar.gz
cpython-23645420dcc4f3b7b2ec4045ef6ac126c37a98c2.tar.bz2
GH-110749: fix unistd.h import in file_tokenizer.c (#110750)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/tokenizer/file_tokenizer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser/tokenizer/file_tokenizer.c b/Parser/tokenizer/file_tokenizer.c
index 05ab5a0..2750527 100644
--- a/Parser/tokenizer/file_tokenizer.c
+++ b/Parser/tokenizer/file_tokenizer.c
@@ -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"