| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 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/aranym/files/ |
Upload File : |
- backport of patch to fix https://github.com/aranym/aranym/issues/77
--- src/natfeat/hostfs.cpp.orig 2019-04-14 14:11:29 UTC
+++ src/natfeat/hostfs.cpp
@@ -2872,7 +2872,22 @@ int32 HostFs::xfs_native_init( int16 devnum, memptr mo
* for drivers that are not running under mint,
* report our current timezone (in the filesys.res1 field)
*/
+#if defined(__FreeBSD__) || 1
+ /*
+ * FreeBSD does not have that global variable.
+ * Maybe others, too.
+ */
+ {
+ time_t t;
+ int32_t offset;
+
+ t = time(0);
+ offset = -gmtoff(t);
+ WriteInt32(filesys + 136, offset);
+ }
+#else
WriteInt32(filesys + 136, timezone);
+#endif
int16 dnum = -1;
size_t len = strlen( fmountPoint );