]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix for structure size mismatch in switch_file_stat
authorDavid Yat Sin <dyatsin@sangoma.com>
Thu, 30 Sep 2010 15:04:45 +0000 (08:04 -0700)
committerDavid Yat Sin <dyatsin@sangoma.com>
Thu, 30 Sep 2010 15:04:45 +0000 (08:04 -0700)
src/include/switch_apr.h
src/switch_apr.c

index 84fcb61004dac6f722f9dd3951d130bf0d8bd0fb..b049c05d403af0f20ea08331c30d7230918715e9 100644 (file)
@@ -692,7 +692,7 @@ typedef gid_t                     switch_gid_t;
         typedef ino_t switch_ino_t;
         typedef dev_t switch_dev_t;
 #endif
-        typedef off_t switch_off_t;
+        typedef off64_t switch_off_t;
 
 /**
  * Structure for referencing file information
index b0f736720fba26fba7984ff7685184d578a66286..9a46b112c687d0ca9968757979025c5fe7c53aa0 100644 (file)
@@ -421,6 +421,7 @@ SWITCH_DECLARE(switch_status_t) switch_file_stat(switch_finfo_t *finfo, const ch
        apr_status_t status;
        apr_finfo_t aprinfo;
        if (sizeof(*finfo) != sizeof(aprinfo)) {
+               fprintf(stderr, "Error:structure file mismatch switch_finfo_t:%u apr_finfo_t:%u\n", sizeof(*finfo), sizeof(aprinfo));
                return SWITCH_STATUS_MEMERR;
        }
        status = apr_stat(&aprinfo, fname, wanted, pool);