summaryrefslogtreecommitdiff
path: root/Xtrans.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-07-30 16:07:39 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-07-30 16:07:39 -0700
commite5f52f206916b7c5264b9371f9bd0113632a4a16 (patch)
tree27cec8bb83f115343db2a53c8f27543330cf5b64 /Xtrans.c
parent6d1ad967b894a37f423fd52247df5fcc3bfab1a8 (diff)
Fix ifdef checks for SVR4 to do the right thing on Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'Xtrans.c')
-rw-r--r--Xtrans.c4
1 files changed, 2 insertions, 2 deletions
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