Skip to content

Commit

Permalink
update freebsd patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Oct 15, 2024
1 parent 3da020f commit c816151
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions patches/3.13/02-freebsd-errno.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/Include/Python.h b/Include/Python.h
index 52a7aac6ba..c09deb9223 100644
index fb2d32d7110..4b8bf901bdf 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -22,7 +22,15 @@
@@ -33,7 +33,15 @@
// The <ctype.h> and <unistd.h> headers are not included by limited C API
// version 3.13 and newer.
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
# include <stdlib.h>
# include <stdio.h> // FILE*
+# if defined(__FreeBSD__) && defined(_POSIX_SOURCE)
+# define _WANT_POSIX_SOURCE
+# undef _POSIX_SOURCE
Expand All @@ -15,6 +15,6 @@ index 52a7aac6ba..c09deb9223 100644
+# define _POSIX_SOURCE
+# undef _WANT_POSIX_SOURCE
+# endif
# include <stdio.h> // FILE*
# include <stdlib.h> // getenv()
# include <string.h> // memcpy()
#endif
#ifndef MS_WINDOWS

0 comments on commit c816151

Please sign in to comment.