1
0
Fork 0

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
This commit is contained in:
Peter Veenstra 2009-01-26 20:15:58 +00:00
parent 70a150c2d6
commit 6945f3e81f
3 changed files with 6 additions and 5 deletions

View file

@ -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])

View file

@ -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"

View file

@ -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)