From b2688c295b3707b6bba0a078b3a0cad97f766977 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 12 Sep 2005 23:16:01 +0000
Subject: [PATCH] Fix Solaris 10 detection and NEEDS_SETENV setting.

---
 src/build/Common.gmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index 38c5ba090d..b32ae87666 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -226,9 +226,9 @@ endif
 
 # OS Specific Flags
 ifeq ($(os),sunos)    # Solaris
- CFLAGS	+= -D__solaris__ -DNEEDS_DAEMON -DNEEDS_FORKPTY -DNEEDS_SETENV -DNEEDS_CFMAKERAW
+ CFLAGS	+= -D__solaris__ -DNEEDS_DAEMON -DNEEDS_FORKPTY -DNEEDS_CFMAKERAW
  # Solaris 10 provides setenv()
- ifeq ($(shell if [ `uname -r | sed 's/^..//'` -lt 10 ] ; then echo "Yes" ; else echo "No" ; fi),Yes)
+ ifeq ($(shell if [ `uname -r | sed 's/\.//'` -lt 510 ] ; then echo "Yes" ; else echo "No" ; fi),Yes)
   CFLAGS += -DNEEDS_SETENV
  endif
  LDFLAGS	+=	-L/opt/sfw/lib
-- 
GitLab