mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 20:40:13 -04:00
14 lines
536 B
Plaintext
14 lines
536 B
Plaintext
$NetBSD: patch-ah,v 1.2 2006/05/13 20:52:35 adam Exp $
|
|
|
|
--- src/Unix/serial_unix.cpp.orig 2005-12-04 16:03:11.000000000 +0100
|
|
+++ src/Unix/serial_unix.cpp
|
|
@@ -212,7 +212,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)
|