update to new format for cpp define SunOS

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6480 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-22 02:58:32 +00:00
parent 5fb00398bc
commit 770a0aab91
10 changed files with 14 additions and 14 deletions

View File

@@ -60,7 +60,7 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 4
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 40
#include <sys/ioctl.h>
#endif
#ifdef TIME_WITH_SYS_TIME

View File

@@ -113,7 +113,7 @@
#endif
/* as far as we know, this is only used with later versions of Slowlaris */
#if SunOS == 5 && defined(HAVE_SYS_STROPTS_H) && defined(HAVE_FATTACH) && defined(I_PUSH)
#if SunOS >= 50 && defined(HAVE_SYS_STROPTS_H) && defined(HAVE_FATTACH) && defined(I_PUSH)
#define MAY_HAVE_X11_PIPES
#endif

View File

@@ -108,7 +108,7 @@
#include <sys/param.h>
#endif
/* not with SunOS 4 */
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 4
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 40
#include <sys/ioctl.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H

View File

@@ -395,7 +395,7 @@ int getpty(int *ptynum)
int p;
char *cp, *p1, *p2;
int i;
#if SunOS == 4
#if SunOS == 40
int dummy;
#endif
#if 0 /* && defined(HAVE_OPENPTY) */
@@ -464,14 +464,14 @@ int getpty(int *ptynum)
#endif
chown(line, 0, 0);
chmod(line, 0600);
#if SunOS == 4
#if SunOS == 40
if (ioctl(p, TIOCGPGRP, &dummy) == 0
|| errno != EIO) {
chmod(line, 0666);
close(p);
line[5] = 'p';
} else
#endif /* SunOS == 4 */
#endif /* SunOS == 40 */
return(p);
}
}

View File

@@ -81,7 +81,7 @@
/* including both <sys/ioctl.h> and <termios.h> in SunOS 4 generates a
lot of warnings */
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 4
#if defined(HAVE_SYS_IOCTL_H) && SunOS != 40
#include <sys/ioctl.h>
#endif
#ifdef HAVE_SYS_FILIO_H