Skip to content

Commit d2fc237

Browse files
committed
Remove unnecessary gethostname() prototype for Solaris
1 parent bdc3c88 commit d2fc237

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Modules/socketmodule.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ Local naming conventions:
111111
#include "pycore_fileutils.h" // _Py_set_inheritable()
112112
#include "pycore_moduleobject.h" // _PyModule_GetState
113113

114-
// gethostname() prototype missing from Solaris standard header files
115-
#ifdef __sun
116-
extern int gethostname(char *, int);
117-
#endif
118-
119114
#ifdef _Py_MEMORY_SANITIZER
120115
# include <sanitizer/msan_interface.h>
121116
#endif

0 commit comments

Comments
 (0)