summaryrefslogtreecommitdiff
path: root/emulators/BasiliskII/patches/patch-ai
blob: 4906191bddbb6e5cd7ab36f46fcccec6b4f5aaf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ai,v 1.3 2006/05/13 20:52:35 adam Exp $

--- src/Unix/prefs_editor_gtk.cpp.orig	2006-04-30 23:16:48.000000000 +0200
+++ src/Unix/prefs_editor_gtk.cpp
@@ -1283,7 +1283,7 @@ static GList *add_serial_names(void)
 		while ((de = readdir(d)) != NULL) {
 #if defined(__linux__)
 			if (strncmp(de->d_name, "ttyS", 4) == 0 || strncmp(de->d_name, "lp", 2) == 0) {
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 			if (strncmp(de->d_name, "cuaa", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
 #elif defined(__NetBSD__)
 			if (strncmp(de->d_name, "tty0", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
@@ -1322,7 +1322,7 @@ static GList *add_ether_names(void)
 			struct ifreq req, *ifr = ifc.ifc_req;
 			for (int i=0; i<ifc.ifc_len; i+=sizeof(ifreq), ifr++) {
 				req = *ifr;
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(sgi)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(sgi) || defined(__DragonFly__)
 				if (ioctl(s, SIOCGIFADDR, &req) == 0 && (req.ifr_addr.sa_family == ARPHRD_ETHER || req.ifr_addr.sa_family == ARPHRD_ETHER+1)) {
 #elif defined(__linux__)
 				if (ioctl(s, SIOCGIFHWADDR, &req) == 0 && req.ifr_hwaddr.sa_family == ARPHRD_ETHER) {