summaryrefslogtreecommitdiff
path: root/emulators/BasiliskII/patches/patch-ah
blob: 6fd49dcc53889487f88c656124c71b51834b7901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ah,v 1.1 2005/11/17 16:56:39 joerg Exp $

--- src/Unix/serial_unix.cpp.orig	2005-11-17 14:28:47.000000000 +0000
+++ src/Unix/serial_unix.cpp
@@ -201,7 +201,7 @@ int16 XSERDPort::open(uint16 config)
 		if (fstat(fd, &st) == 0)
 			if (S_ISCHR(st.st_mode))
 				protocol = ((MAJOR(st.st_rdev) == LP_MAJOR) ? parallel : serial);
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
 		// Parallel port?
 		struct stat st;
 		if (fstat(fd, &st) == 0)