blob: 324d0712c84f53b6b0dfe124caffd4df05f53ca6 [file] [log] [blame]
Michael Stahl8a6c5b22012-11-17 00:39:31 +01001definition of gethostbyname conflicts with system /usr/include/unistd.h,
2available since at least Solaris 2.6 according to python-Bugs-837046
3Author: taniguchi@openoffice.org
4
5--- misc/Python-2.6.1/Include/pyport.h 2008-06-11 09:41:16.000000000 +0200
6+++ misc/build/Python-2.6.1/Include/pyport.h 2011-06-06 17:31:17.000000000 +0200
7@@ -449,11 +449,6 @@
8 in platform-specific #ifdefs.
9 **************************************************************************/
10
11-#ifdef SOLARIS
12-/* Unchecked */
13-extern int gethostname(char *, int);
14-#endif
15-
16 #ifdef HAVE__GETPTY
17 #include <sys/types.h> /* we need to import mode_t */