-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
diff --git a/Include/Python.h b/Include/Python.h | ||
index fb2d32d7110..5b684c7079d 100644 | ||
index d3186c32e35..55ed6a1e634 100644 | ||
--- a/Include/Python.h | ||
+++ b/Include/Python.h | ||
@@ -34,6 +34,11 @@ | ||
// version 3.13 and newer. | ||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 | ||
# include <errno.h> // errno | ||
+# if defined(__FreeBSD__) | ||
+# ifndef EWOULDBLOCK | ||
+# define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
+# endif | ||
@@ -30,6 +30,11 @@ | ||
#include <string.h> | ||
#ifdef HAVE_ERRNO_H | ||
#include <errno.h> | ||
+#if defined(__FreeBSD__) | ||
+# ifndef EWOULDBLOCK | ||
+# define EWOULDBLOCK EAGAIN | ||
+# endif | ||
# include <stdio.h> // FILE* | ||
# include <stdlib.h> // getenv() | ||
# include <string.h> // memcpy() | ||
+#endif | ||
#endif | ||
#include <stdlib.h> | ||
#ifndef MS_WINDOWS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
diff --git a/Include/Python.h b/Include/Python.h | ||
index fb2d32d7110..5b684c7079d 100644 | ||
index 52a7aac6ba6..54fc034b90c 100644 | ||
--- a/Include/Python.h | ||
+++ b/Include/Python.h | ||
@@ -34,6 +34,11 @@ | ||
// version 3.13 and newer. | ||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 | ||
@@ -23,6 +23,11 @@ | ||
# include <stdlib.h> | ||
# include <stdio.h> // FILE* | ||
# include <errno.h> // errno | ||
+# if defined(__FreeBSD__) | ||
+# ifndef EWOULDBLOCK | ||
+# define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
+# define EWOULDBLOCK EAGAIN | ||
+# endif | ||
+# endif | ||
# include <stdio.h> // FILE* | ||
# include <stdlib.h> // getenv() | ||
# include <string.h> // memcpy() | ||
#endif | ||
#ifndef MS_WINDOWS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
diff --git a/Include/Python.h b/Include/Python.h | ||
index fb2d32d7110..5b684c7079d 100644 | ||
index 52a7aac6ba6..54fc034b90c 100644 | ||
--- a/Include/Python.h | ||
+++ b/Include/Python.h | ||
@@ -34,6 +34,11 @@ | ||
// version 3.13 and newer. | ||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 | ||
@@ -23,6 +23,11 @@ | ||
# include <stdlib.h> | ||
# include <stdio.h> // FILE* | ||
# include <errno.h> // errno | ||
+# if defined(__FreeBSD__) | ||
+# ifndef EWOULDBLOCK | ||
+# define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
+# define EWOULDBLOCK EAGAIN | ||
+# endif | ||
+# endif | ||
# include <stdio.h> // FILE* | ||
# include <stdlib.h> // getenv() | ||
# include <string.h> // memcpy() | ||
#endif | ||
#ifndef MS_WINDOWS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
diff --git a/Include/Python.h b/Include/Python.h | ||
index fb2d32d7110..5b684c7079d 100644 | ||
index d3186c32e35..55ed6a1e634 100644 | ||
--- a/Include/Python.h | ||
+++ b/Include/Python.h | ||
@@ -34,6 +34,11 @@ | ||
// version 3.13 and newer. | ||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 | ||
# include <errno.h> // errno | ||
+# if defined(__FreeBSD__) | ||
+# ifndef EWOULDBLOCK | ||
+# define EWOULDBLOCK EAGAIN /* Operation would block */ | ||
+# endif | ||
@@ -30,6 +30,11 @@ | ||
#include <string.h> | ||
#ifdef HAVE_ERRNO_H | ||
#include <errno.h> | ||
+#if defined(__FreeBSD__) | ||
+# ifndef EWOULDBLOCK | ||
+# define EWOULDBLOCK EAGAIN | ||
+# endif | ||
# include <stdio.h> // FILE* | ||
# include <stdlib.h> // getenv() | ||
# include <string.h> // memcpy() | ||
+#endif | ||
#endif | ||
#include <stdlib.h> | ||
#ifndef MS_WINDOWS |