Solaris zvt problem found and squashed

I have a feeling someone's going to be embarrassed....

Index: zvt/gnome-login-support.c
RCS file: /cvs/gnome/gnome-libs/zvt/gnome-login-support.c,v
retrieving revision 1.12
diff -u -r1.12 gnome-login-support.c
--- zvt/gnome-login-support.c	1999/04/02 23:52:47	1.12
+++ zvt/gnome-login-support.c	1999/05/23 00:43:32
@@ -136,7 +136,7 @@
 /* SystemVish pty opening */
 #if defined (HAVE_GRANTPT)
-#ifdef (HAVE_STROPTS_H)
 #    include <stropts.h>
@@ -148,7 +148,7 @@
 	if (pty_slave == -1)
 		return -1;
-#ifdef (HAVE_STROPTS_H)
 #if !defined(__osf__)
 	if (!ioctl (pty_slave, I_FIND, "ptem"))
 		if (ioctl (pty_slave, I_PUSH, "ptem") == -1){

Basically, with the extra parens in the #ifdef, GNU cpp prints a warning
message and evals false.  Oops....

With this patch, both ztest and gnome-terminal now work on Solaris 2.5.1.

brandon s. allbery	[os/2][linux][solaris][japh]
system administrator	     [WAY too many hats]
electrical and computer engineering					 KF8NH
carnegie mellon university	      ["God, root, what is difference?" -Pitr]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]