mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-16 15:29:32 +00:00
Improved UI support on FreeBSD
This commit is contained in:
parent
7482de353b
commit
01ba8564ed
|
@ -28,9 +28,13 @@
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <net/if_arp.h>
|
#include <net/if_arp.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
||||||
|
#ifdef HAfVE_SYS_STAT_H
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GNOMEUI
|
#ifdef HAVE_GNOMEUI
|
||||||
#include <gnome.h>
|
#include <gnome.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -414,12 +418,12 @@ static void mn_about(...)
|
||||||
const char *authors[] = {
|
const char *authors[] = {
|
||||||
"Christian Bauer",
|
"Christian Bauer",
|
||||||
"Orlando Bassotto",
|
"Orlando Bassotto",
|
||||||
"Gwenolé Beauchesne",
|
"Gwenolé Beauchesne",
|
||||||
"Marc Chabanas",
|
"Marc Chabanas",
|
||||||
"Marc Hellwig",
|
"Marc Hellwig",
|
||||||
"Biill Huey",
|
"Biill Huey",
|
||||||
"Brian J. Johnson",
|
"Brian J. Johnson",
|
||||||
"Jürgen Lachmann",
|
"Jürgen Lachmann",
|
||||||
"Samuel Lander",
|
"Samuel Lander",
|
||||||
"David Lawrence",
|
"David Lawrence",
|
||||||
"Lauri Pesonen",
|
"Lauri Pesonen",
|
||||||
|
@ -1291,7 +1295,7 @@ static GList *add_serial_names(void)
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
if (strncmp(de->d_name, "ttyS", 4) == 0 || strncmp(de->d_name, "lp", 2) == 0) {
|
if (strncmp(de->d_name, "ttyS", 4) == 0 || strncmp(de->d_name, "lp", 2) == 0) {
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
if (strncmp(de->d_name, "cuaa", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
|
if (strncmp(de->d_name, "cua", 3) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
if (strncmp(de->d_name, "tty0", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
|
if (strncmp(de->d_name, "tty0", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
|
||||||
#elif defined(sgi)
|
#elif defined(sgi)
|
||||||
|
|
|
@ -369,6 +369,9 @@ void SysAddCDROMPrefs(void)
|
||||||
closedir(cd_dir);
|
closedir(cd_dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#elif defined __FreeBSD__
|
||||||
|
if (access("/cdrom", F_OK) == 0)
|
||||||
|
PrefsAddString("cdrom", "/cdrom");
|
||||||
#elif defined __MACOSX__
|
#elif defined __MACOSX__
|
||||||
// There is no predefined path for CD-ROMs on MacOS X. Rather, we
|
// There is no predefined path for CD-ROMs on MacOS X. Rather, we
|
||||||
// define a single fake CD-ROM entry for the emulated MacOS.
|
// define a single fake CD-ROM entry for the emulated MacOS.
|
||||||
|
@ -396,8 +399,8 @@ void SysAddSerialPrefs(void)
|
||||||
PrefsAddString("serialb", "/dev/tts/1");
|
PrefsAddString("serialb", "/dev/tts/1");
|
||||||
}
|
}
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
PrefsAddString("seriala", "/dev/cuaa0");
|
PrefsAddString("seriala", "/dev/cuau0");
|
||||||
PrefsAddString("serialb", "/dev/cuaa1");
|
PrefsAddString("serialb", "/dev/cuau1");
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
PrefsAddString("seriala", "/dev/tty00");
|
PrefsAddString("seriala", "/dev/tty00");
|
||||||
PrefsAddString("serialb", "/dev/tty01");
|
PrefsAddString("serialb", "/dev/tty01");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user