From 6945f3e81fa73e352bbc0f14cb64d6df8e41b147 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 26 Jan 2009 20:15:58 +0000 Subject: [PATCH] Enable directserial for BSD. (talked it over with the FreeBSD maintainer Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3274 --- configure.in | 3 ++- src/hardware/serialport/directserial_posix.cpp | 4 ++-- src/hardware/serialport/directserial_posix.h | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 3ac3a61a..3cf4bc49 100644 --- a/configure.in +++ b/configure.in @@ -438,7 +438,8 @@ case "$target" in dnl directserial detection should be rewritten to test for the needed dnl functions and headers. I currently do not know dnl which ones are needed for BSD - dnl AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).]) + AC_DEFINE(BSD, 1, [Compiling on BSD]) + AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).]) ;; *-*-os2-emx*) AC_DEFINE(OS2, 1, [Compiling on OS/2 EMX]) diff --git a/src/hardware/serialport/directserial_posix.cpp b/src/hardware/serialport/directserial_posix.cpp index 5b6c9db4..a13aec94 100644 --- a/src/hardware/serialport/directserial_posix.cpp +++ b/src/hardware/serialport/directserial_posix.cpp @@ -16,14 +16,14 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: directserial_posix.cpp,v 1.2 2007-08-26 17:19:46 qbix79 Exp $ */ +/* $Id: directserial_posix.cpp,v 1.3 2009-01-26 20:15:58 qbix79 Exp $ */ #include "dosbox.h" #if C_DIRECTSERIAL // Posix version -#if defined (LINUX) || defined (MACOSX) +#if defined (LINUX) || defined (MACOSX) || defined (BSD) #include "serialport.h" #include "directserial_posix.h" diff --git a/src/hardware/serialport/directserial_posix.h b/src/hardware/serialport/directserial_posix.h index 93c7d6a3..00bb0077 100644 --- a/src/hardware/serialport/directserial_posix.h +++ b/src/hardware/serialport/directserial_posix.h @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: directserial_posix.h,v 1.2 2007-08-26 17:19:46 qbix79 Exp $ */ +/* $Id: directserial_posix.h,v 1.3 2009-01-26 20:15:58 qbix79 Exp $ */ // include guard #ifndef DOSBOX_DIRECTSERIAL_POSIX_H @@ -25,7 +25,7 @@ #include "dosbox.h" #if C_DIRECTSERIAL -#if defined (LINUX) || defined (MACOSX) +#if defined (LINUX) || defined (MACOSX) || defined (BSD)