Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Enable dup2 and gethostbyname on Windows
  • Loading branch information
tiran committed Jul 23, 2022
commit 4f08a9d99a0172c80931df60fa7e45b9f3170045
6 changes: 6 additions & 0 deletions PC/pyconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define if you have the 'gethostbyaddr' function. */
#define HAVE_GETHOSTBYADDR 1

/* Define if you have the 'gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1

/* Define if you have the 'getprotobyname' function. */
#define HAVE_GETPROTOBYNAME 1

Expand Down Expand Up @@ -723,6 +726,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define if you have the 'socket' function. */
#define HAVE_SOCKET 1

/* Define to 1 if you have the `dup2' function. */
#define HAVE_DUP2 1

/* framework name */
#define _PYTHONFRAMEWORK ""

Expand Down