| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1120,7 +1120,8 @@ Porting to Python 3.13 | |||
| 1120 | 1120 | * ``Python.h`` no longer includes the ``<unistd.h>`` standard header file. If | |
| 1121 | 1121 | needed, it should now be included explicitly. For example, it provides the | |
| 1122 | 1122 | functions: ``read()``, ``write()``, ``close()``, ``isatty()``, ``lseek()``, | |
| 1123 | - ``getpid()``, ``getcwd()``, ``sysconf()`` and ``getpagesize()``. | ||
| 1123 | + ``getpid()``, ``getcwd()``, ``sysconf()``, ``getpagesize()``, ``alarm()`` and | ||
| 1124 | + ``pause()``. | ||
| 1124 | 1125 | As a consequence, ``_POSIX_SEMAPHORES`` and ``_POSIX_THREADS`` macros are no | |
| 1125 | 1126 | longer defined by ``Python.h``. The ``HAVE_UNISTD_H`` and ``HAVE_PTHREAD_H`` | |
| 1126 | 1127 | macros defined by ``Python.h`` can be used to decide if ``<unistd.h>`` and | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,7 @@ | |||
| 14 | 14 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| 15 | 15 | #include "pycore_signal.h" // _Py_RestoreSignals() | |
| 16 | 16 | ||
| 17 | + #include <unistd.h> // alarm() | ||
| 17 | 18 | #ifndef MS_WINDOWS | |
| 18 | 19 | # include "posixmodule.h" // _PyLong_FromUid() | |
| 19 | 20 | #endif | |
| Back | FazBrowse Home | New Git URL |
0 commit comments