pkgsrc/emulators/BasiliskII/patches/patch-ai
adam 1c561c96ed Changes 1.0-20060501:
* Handle up to 1 GB of Mac memory
* Handle MacOS idle wait (idlewait prefs item)
* Fix a crash with the AppleShare extension
* Improve SLiRP network emulation performance
* Portability fixes to IRIX/mips, Solaris/SPARC
Mac OS X:
* Port to Mac OS X for Intel, including the JIT
* Add a primitive graphical preferences editor
* Fix clipboard (copy/paste of text from/to the host OS)
* Fix external filesystem
* Fix SLiRP network emulation (workaround MacOS X bugs)
Windows:
* Add SLiRP network emulation (ether slirp)
* Add TAP-Win32 network emulation (ether tap)
* Fix CD-ROM auto-detection (pollmedia now works)
* Improve GUI for network configuration
2006-05-13 20:52:35 +00:00

22 lines
1.2 KiB
Text

$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) {