| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 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/science/silo/files/ |
Upload File : |
--- src/silo/silo.c.orig 2014-10-14 00:22:33 UTC
+++ src/silo/silo.c
@@ -226,12 +226,8 @@ typedef struct db_silo_stat_t {
#ifndef SIZEOF_OFF64_T
#error missing definition for SIZEOF_OFF64_T in silo_private.h
#else
-#if SIZEOF_OFF64_T > 4
- struct stat64 s;
-#else
struct stat s;
#endif
-#endif
#ifdef _WIN32
DWORD fileindexlo;
DWORD fileindexhi;
@@ -2283,11 +2279,7 @@ db_silo_stat_one_file(const char *name,
errno = 0;
memset(&(statbuf->s), 0, sizeof(statbuf->s));
-#if SIZEOF_OFF64_T > 4
- retval = stat64(name, &(statbuf->s));
-#else
retval = stat(name, &(statbuf->s));
-#endif /* #if SIZEOF_OFF64_T > 4 */
#ifdef _WIN32
if (retval == 0)
@@ -4225,11 +4217,7 @@ DBOpenReal(const char *name, int type, i
/********************************/
/* System level error occured. */
/********************************/
-#if SIZEOF_OFF64_T > 4
- printf("stat64() failed with error: ");
-#else
printf("stat() failed with error: ");
-#endif
switch (errno)
{
case EACCES: printf("EACCES\n"); break;