51 lines
1.1 KiB
Plaintext

--- ./konica_qmxxx/os.c.orig Wed Nov 10 18:23:44 1999
+++ ./konica_qmxxx/os.c Wed Nov 10 18:56:26 1999
@@ -17,6 +17,7 @@
*
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -27,16 +28,17 @@
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <sys/uio.h>
#include <sys/ioctl.h>
#include "log.h"
#include "os.h"
-#ifdef __FreeBSD__
- #if 3 <= __FreeBSD__
- #define FreeBSD_3
- #else
+#ifdef BSD
+ #if (defined (__FreeBSD__) && __FreeBSD__ < 3)
#error FreeBSD-2.2.x is not support for kernel sio bug
#endif
#endif
@@ -134,7 +136,6 @@
printf("19 V_spare2 0x%02x\n", 0 );
#endif
- #if defined(linux) || defined(FreeBSD_3)
switch( mode ){
case XON_XOFF: iflag = (IXON|IXOFF|IGNBRK); break;
case CRTS_CTS: iflag = (CRTSCTS); break;
@@ -146,9 +147,6 @@
sio_termios.c_lflag = 0;
//sio_termios.c_cc[VMIN] = 0;
//sio_termios.c_cc[VTIME] = 100;
- #else
- #error This OS is not support
- #endif
cfsetospeed(&sio_termios, B9600);
cfsetispeed(&sio_termios, B9600);