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

Skip to content

Commit db575db

Browse files
committed
Add definition of socklen_t so that socketmodule.c will compile on Windows.
1 parent ff3ab42 commit db575db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PC/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ typedef int pid_t;
308308
/* Define to `unsigned' if <sys/types.h> doesn't define. */
309309
/* #undef size_t */
310310

311+
/* Define to `int' if <sys/types.h> doesn't define. */
312+
#define socklen_t int
313+
311314
/* Define if you have the ANSI C header files. */
312315
#define STDC_HEADERS 1
313316

0 commit comments

Comments
 (0)