From 158aa4604b1e9c6ced8a394dc01b6055167240ca Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Fri, 13 Dec 2024 16:27:15 -0500 Subject: [PATCH] remove freebsd errno patch --- ...random.patch => 02-cosmo-sys-random.patch} | 0 patches/3.13/02-freebsd-errno.patch | 20 ------------------- ...tch => 03-getpath_noop-missing-stub.patch} | 0 ...ule.patch => 04-solaris-fcntlmodule.patch} | 0 ...th-h.patch => 05-relative-getpath-h.patch} | 0 ...h => 06-testcapimodule-gettimeofday.patch} | 0 6 files changed, 20 deletions(-) rename patches/3.13/{03-cosmo-sys-random.patch => 02-cosmo-sys-random.patch} (100%) delete mode 100644 patches/3.13/02-freebsd-errno.patch rename patches/3.13/{04-getpath_noop-missing-stub.patch => 03-getpath_noop-missing-stub.patch} (100%) rename patches/3.13/{05-solaris-fcntlmodule.patch => 04-solaris-fcntlmodule.patch} (100%) rename patches/3.13/{06-relative-getpath-h.patch => 05-relative-getpath-h.patch} (100%) rename patches/3.13/{07-testcapimodule-gettimeofday.patch => 06-testcapimodule-gettimeofday.patch} (100%) diff --git a/patches/3.13/03-cosmo-sys-random.patch b/patches/3.13/02-cosmo-sys-random.patch similarity index 100% rename from patches/3.13/03-cosmo-sys-random.patch rename to patches/3.13/02-cosmo-sys-random.patch diff --git a/patches/3.13/02-freebsd-errno.patch b/patches/3.13/02-freebsd-errno.patch deleted file mode 100644 index 040cd69..0000000 --- a/patches/3.13/02-freebsd-errno.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/Include/Python.h b/Include/Python.h -index fb2d32d7110..4b8bf901bdf 100644 ---- a/Include/Python.h -+++ b/Include/Python.h -@@ -33,7 +33,15 @@ - // The and headers are not included by limited C API - // version 3.13 and newer. - #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 -+# if defined(__FreeBSD__) && defined(_POSIX_SOURCE) -+# define _WANT_POSIX_SOURCE -+# undef _POSIX_SOURCE -+# endif - # include // errno -+# if defined(_WANT_POSIX_SOURCE) -+# define _POSIX_SOURCE -+# undef _WANT_POSIX_SOURCE -+# endif - # include // FILE* - # include // getenv() - # include // memcpy() diff --git a/patches/3.13/04-getpath_noop-missing-stub.patch b/patches/3.13/03-getpath_noop-missing-stub.patch similarity index 100% rename from patches/3.13/04-getpath_noop-missing-stub.patch rename to patches/3.13/03-getpath_noop-missing-stub.patch diff --git a/patches/3.13/05-solaris-fcntlmodule.patch b/patches/3.13/04-solaris-fcntlmodule.patch similarity index 100% rename from patches/3.13/05-solaris-fcntlmodule.patch rename to patches/3.13/04-solaris-fcntlmodule.patch diff --git a/patches/3.13/06-relative-getpath-h.patch b/patches/3.13/05-relative-getpath-h.patch similarity index 100% rename from patches/3.13/06-relative-getpath-h.patch rename to patches/3.13/05-relative-getpath-h.patch diff --git a/patches/3.13/07-testcapimodule-gettimeofday.patch b/patches/3.13/06-testcapimodule-gettimeofday.patch similarity index 100% rename from patches/3.13/07-testcapimodule-gettimeofday.patch rename to patches/3.13/06-testcapimodule-gettimeofday.patch