| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/emulators/teo/files/ |
Upload File : |
# HG changeset patch
# User François Mouret
# Date 1544541950 -3600
# Tue Dec 11 16:25:50 2018 +0100
# Node ID e49c586caa6bfd5cbc710fbbef05cf6f3c361fcd
# Parent e5023114c1b22b12a07de65eaa3460cae578ec49
Avoid floppy reactions for non Linux systems (thanks to Thomas Bernard)
--- src/linux/ufloppy.c.orig 2017-11-03 16:40:23 UTC
+++ src/linux/ufloppy.c
@@ -44,6 +44,7 @@
*/
+#if defined(linux)
#ifndef SCAN_DEPEND
#include <stdio.h>
#include <string.h>
@@ -404,3 +405,18 @@ void ufloppy_Exit (void)
}
}
+#else
+
+/* for non linux systems, such as FreeBSD, etc. */
+
+int ufloppy_Init (int to_drive_type[4], int enable_write)
+{
+ return 0;
+}
+
+void ufloppy_Exit (void)
+{
+}
+
+#endif
+