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

2 problems with __OpenBSD__



Here are two places where __OpenBSD__ is not tested explicitly:

Index: mtab_bsd.c
===================================================================
RCS file: /cvs/src/usr.sbin/amd/config/mtab_bsd.c,v
retrieving revision 1.2
diff -c -r1.2 mtab_bsd.c
*** mtab_bsd.c	1996/03/25 15:54:52	1.2
--- mtab_bsd.c	1996/10/27 21:09:34
***************
*** 52,58 ****
  
  	new_mp->mnt_fsname = strdup(mp->f_mntfromname);
  	new_mp->mnt_dir = strdup(mp->f_mntonname);
! #ifndef __NetBSD__
  	switch (mp->f_type) {
  	case MOUNT_UFS:  ty = MTAB_TYPE_UFS; break;
  	case MOUNT_NFS:  ty = MTAB_TYPE_NFS; break;
--- 52,58 ----
  
  	new_mp->mnt_fsname = strdup(mp->f_mntfromname);
  	new_mp->mnt_dir = strdup(mp->f_mntonname);
! #if !defined(__NetBSD__) && !defined(__OpenBSD__)
  	switch (mp->f_type) {
  	case MOUNT_UFS:  ty = MTAB_TYPE_UFS; break;
  	case MOUNT_NFS:  ty = MTAB_TYPE_NFS; break;
Index: fontedit.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/isa/pcvt/Util/fontedit/fontedit.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 fontedit.c
*** fontedit.c	1995/10/18 08:50:43	1.1.1.1
--- fontedit.c	1996/10/27 21:10:58
***************
*** 30,36 ****
  #ifdef BSD
  #include <sys/ioctl.h>
  #endif BSD
! #if defined (__NetBSD__) || defined (__FreeBSD__)
  #include <sys/termios.h>
  #include <sys/ioctl.h>
  #endif /* __NetBSD__ || __FreeBSD__ */
--- 30,36 ----
  #ifdef BSD
  #include <sys/ioctl.h>
  #endif BSD
! #if defined (__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__)
  #include <sys/termios.h>
  #include <sys/ioctl.h>
  #endif /* __NetBSD__ || __FreeBSD__ */
***************
*** 107,113 ****
  #ifdef BSD
  struct sgttyb old_stty, new_stty;
  #endif BSD
! #if defined (__NetBSD__) || defined (__FreeBSD__)
  struct termios old_stty, new_stty;
  #endif /* __NetBSD__ || __FreeBSD__ */
  FILE * font_file = (FILE *)0;
--- 107,113 ----
  #ifdef BSD
  struct sgttyb old_stty, new_stty;
  #endif BSD
! #if defined (__NetBSD__) || defined(__OpenBSD__) || defined (__FreeBSD__)
  struct termios old_stty, new_stty;
  #endif /* __NetBSD__ || __FreeBSD__ */
  FILE * font_file = (FILE *)0;

					Matthieu


Visit your host, monkey.org