| 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/games/zhlt/files/ |
Upload File : |
--- common/cmdlib.cpp.orig 2016-03-30 06:24:01 UTC
+++ common/cmdlib.cpp
@@ -13,6 +13,9 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
@@ -21,6 +24,8 @@
#endif
#endif
+#include <algorithm>
+
#define PATHSEPARATOR(c) ((c) == '\\' || (c) == '/')
/*
@@ -128,7 +133,7 @@ inline void getFilePositions(char* path,
else
{ *extension_position = ptr - path; }
- ptr = max(strrchr(path,'/'),strrchr(path,'\\'));
+ ptr = std::max(strrchr(path,'/'),strrchr(path,'\\'));
if(ptr == 0)
{ *directory_position = -1; }
else