--- dosbox-0.74-3/configure.ac.orig +++ dosbox-0.74-3/configure.ac @@ -528,6 +528,11 @@ 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).]) ;; + *-*-solaris*) + AC_DEFINE(SOLARIS, 1, [Compiling on Oracle Solaris]) + AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).]) + LIBS="$LIBS -lnsl -lsocket" + ;; *-*-os2-emx*) AC_DEFINE(OS2, 1, [Compiling on OS/2 EMX]) AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).]) --- dosbox-0.74-3/src/hardware/serialport/libserial.cpp.orig +++ dosbox-0.74-3/src/hardware/serialport/libserial.cpp @@ -254,7 +254,7 @@ } #endif -#if defined (LINUX) || defined (MACOSX) || defined (BSD) +#if defined (LINUX) || defined (MACOSX) || defined (BSD) || defined (SOLARIS) #include // strlen #include