Skip to content

Commit 7269916

Browse files
vstinnerkulikjak
andauthored
1 parent c5ce34f commit 7269916

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

Include/pyport.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,6 @@ Please be conservative with adding new ones, document them and enclose them
429429
in platform-specific #ifdefs.
430430
**************************************************************************/
431431

432-
#ifdef SOLARIS
433-
/* Unchecked */
434-
extern int gethostname(char *, int);
435-
#endif
436-
437432
#ifdef HAVE__GETPTY
438433
#include <sys/types.h> /* we need to import mode_t */
439434
extern char * _getpty(int *, int, mode_t, int);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix Solaris build: no longer redefine the ``gethostname()`` function. Solaris
2+
defines the function since 2005. Patch by Victor Stinner, original patch by
3+
Jakub Kulík.

0 commit comments

Comments
 (0)