Commit 1c07b4b4 authored by Martin v. Löwis's avatar Martin v. Löwis

Test for __sun instead of __sun__, since SUNWspro only defines the latter;

gcc defines both.
parent a38d9169
...@@ -118,7 +118,7 @@ extern int setupterm(char *,int,int *); ...@@ -118,7 +118,7 @@ extern int setupterm(char *,int,int *);
#include <term.h> #include <term.h>
#endif #endif
#if defined(sgi) || defined(__sun__) #if defined(sgi) || defined(__sun)
#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
typedef chtype attr_t; /* No attr_t type is available */ typedef chtype attr_t; /* No attr_t type is available */
#endif #endif
......
...@@ -94,7 +94,7 @@ Socket methods: ...@@ -94,7 +94,7 @@ Socket methods:
#ifdef HAVE_GETHOSTBYNAME_R #ifdef HAVE_GETHOSTBYNAME_R
#if defined(_AIX) || defined(__osf__) #if defined(_AIX) || defined(__osf__)
#define HAVE_GETHOSTBYNAME_R_3_ARG #define HAVE_GETHOSTBYNAME_R_3_ARG
#elif defined(__sun__) || defined(__sgi) #elif defined(__sun) || defined(__sgi)
#define HAVE_GETHOSTBYNAME_R_5_ARG #define HAVE_GETHOSTBYNAME_R_5_ARG
#elif defined(linux) #elif defined(linux)
/* Rely on the configure script */ /* Rely on the configure script */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment