From e5f52f206916b7c5264b9371f9bd0113632a4a16 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 30 Jul 2009 16:07:39 -0700 Subject: Fix ifdef checks for SVR4 to do the right thing on Solaris Signed-off-by: Alan Coopersmith --- Xtrans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Xtrans.c') diff --git a/Xtrans.c b/Xtrans.c index 278651a..7b18f10 100644 --- a/Xtrans.c +++ b/Xtrans.c @@ -103,7 +103,7 @@ Xtransport_table Xtransports[] = { #ifndef sun { &TRANS(PTSFuncs), TRANS_LOCAL_PTS_INDEX }, #endif /* sun */ -#ifdef SVR4 +#if defined(SVR4) || defined(__SVR4) { &TRANS(NAMEDFuncs), TRANS_LOCAL_NAMED_INDEX }, #endif #ifdef sun @@ -1348,7 +1348,7 @@ static int TRANS(WriteV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt) #endif /* SYSV && __i386__ || WIN32 || __sxg__ */ -#if defined(_POSIX_SOURCE) || defined(USG) || defined(SVR4) || defined(__SCO__) +#if defined(_POSIX_SOURCE) || defined(USG) || defined(SVR4) || defined(__SVR4) || defined(__SCO__) #ifndef NEED_UTSNAME #define NEED_UTSNAME #endif -- cgit v1.2.3