summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-08-03 21:38:51 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-08-13 21:56:05 -0700
commit613e76ff9055d8ac2b1af1130668180646a9e14c (patch)
tree16855210d302dd9ecd028d55037651d9ae4a9d66
parent6c292d17053eb2a7e7054e51210f423dbc0cb7e8 (diff)
Remove support for Solaris x86 releases older than Solaris 8
If you want to run a pre-1999 kernel, you'll need a pre-2009 X server [Some pre-Solaris 8 VT support is left by this patch to allow reuse by the new Solaris VT support that follows in the next patch.] Signed-off-by: Aaron Zang <Aaron.Zang@Sun.COM> Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--configure.ac15
-rw-r--r--hw/xfree86/common/xf86Events.c10
-rw-r--r--hw/xfree86/os-support/solaris/sun_init.c4
-rw-r--r--hw/xfree86/os-support/xf86_OSlib.h16
-rw-r--r--include/xorg-config.h.in3
-rw-r--r--include/xorg-server.h.in3
6 files changed, 10 insertions, 41 deletions
diff --git a/configure.ac b/configure.ac
index 5ba91aa83..3bdfbab02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1445,5 +1445,3 @@ if test "x$XORG" = xyes; then
AC_CHECK_HEADERS([sys/kd.h])
- # This really should be tests for specific features, but the #ifdef's
- # were done as a simple version check in XFree86 4.x and haven't been
- # fixed yet
+ # Check for minimum supported release
AC_MSG_CHECKING([Solaris version])
@@ -1455,4 +1453,4 @@ if test "x$XORG" = xyes; then
fi
- if test "${OS_MINOR}" -ge 8 ; then
- AC_DEFINE(__SOL8__,1,[Solaris 8 or later])
+ if test "${OS_MINOR}" -lt 8 ; then
+ AC_MSG_ERROR([This release no longer supports Solaris versions older than Solaris 8.])
fi
@@ -1474,7 +1472,3 @@ if test "x$XORG" = xyes; then
fi
- if test "${OS_MINOR}" -lt 8 ; then
- solaris_usl_console="yes"
- else
- XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
- fi
+ XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
;;
@@ -1610,3 +1604,2 @@ AM_CONDITIONAL([LINUX_ALPHA], [test "x$linux_alpha" = xyes])
AM_CONDITIONAL([LNXACPI], [test "x$linux_acpi" = xyes])
-AM_CONDITIONAL([SOLARIS_USL_CONSOLE], [test "x$solaris_usl_console" = xyes])
AM_CONDITIONAL([SOLARIS_ASM_INLINE], [test "x$solaris_asm_inline" = xyes])
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 3c607854c..58ce15bac 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -87,8 +87,2 @@
/*
- * The first of many hacks to get VT switching to work under
- * Solaris 2.1 for x86. The basic problem is that Solaris is supposed
- * to be SVR4. It is for the most part, except where the video interface
- * is concerned. These hacks work around those problems.
- * See the comments for Linux, and SCO.
- *
* This is a toggling variable:
@@ -202,4 +196,3 @@ xf86ProcessActionEvent(ActionEvent action, void *arg)
break;
-#if !defined(__SOL8__) && \
- (!defined(sun) || defined(__i386__)) && defined(VT_ACTIVATE)
+#if defined(VT_ACTIVATE)
case ACTION_SWITCHSCREEN:
@@ -216,3 +209,2 @@ xf86ProcessActionEvent(ActionEvent action, void *arg)
if (VTSwitchEnabled && !xf86Info.dontVTSwitch) {
-/* Shouldn't this be true for (sun) && (i386) && (SVR4) ? */
#if defined(__SCO__) || defined(__UNIXWARE__)
diff --git a/hw/xfree86/os-support/solaris/sun_init.c b/hw/xfree86/os-support/solaris/sun_init.c
index 2889f197e..56f5e7c99 100644
--- a/hw/xfree86/os-support/solaris/sun_init.c
+++ b/hw/xfree86/os-support/solaris/sun_init.c
@@ -42,7 +42,3 @@ static int xf86StartVT = -1;
-#if defined(__SOL8__) || (!defined(__i386__) && !defined(__i386))
static char fb_dev[PATH_MAX] = "/dev/fb";
-#else
-static char fb_dev[PATH_MAX] = "/dev/console";
-#endif
diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h
index 48d922301..35e1303b9 100644
--- a/hw/xfree86/os-support/xf86_OSlib.h
+++ b/hw/xfree86/os-support/xf86_OSlib.h
@@ -119,11 +119,5 @@
/* V86SC_IOPL was moved to <sys/sysi86.h> on Solaris 7 and later */
-# if defined(sun) && defined (SVR4) /* Solaris? */
-# if defined(__i386__) || defined(__i386) || defined(__x86) /* on x86 or x64? */
-# if !defined(V86SC_IOPL) /* Solaris 7 or later? */
-# include <sys/v86.h> /* Nope */
-# endif
-# endif /* V86SC_IOPL */
-# else
-# include <sys/v86.h> /* Not solaris */
-# endif /* sun && i386 && SVR4 */
+# if !defined(V86SC_IOPL) /* Solaris 7 or later? */
+# include <sys/v86.h> /* Nope */
+# endif
# if defined(sun) && (defined (__i386__) || defined(__i386) || defined(__x86)) && defined (SVR4)
@@ -142,3 +136,3 @@
-# if !defined(sun) || (!defined(sparc) && !defined(__SOL8__))
+# if !defined(sun)
# define HAS_USL_VTS
@@ -200,3 +194,3 @@
-# if defined(sun) && (defined (__i386__) || defined(__i386)) && defined (SVR4) && !defined(__SOL8__)
+# if defined(sun) && defined(HAS_USL_VTS)
# define USE_VT_SYSREQ
diff --git a/include/xorg-config.h.in b/include/xorg-config.h.in
index ffb35f862..5689f3c19 100644
--- a/include/xorg-config.h.in
+++ b/include/xorg-config.h.in
@@ -53,5 +53,2 @@
-/* Solaris 8 or later? */
-#undef __SOL8__
-
/* Define to 1 if you have the <stropts.h> header file. */
diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in
index 957a030cf..76cab16b6 100644
--- a/include/xorg-server.h.in
+++ b/include/xorg-server.h.in
@@ -168,5 +168,2 @@
-/* Solaris 8 or later? */
-#undef __SOL8__
-
/* System has PC console */