[squid-users] Mingw(patch for long file pointers) --with-large-files

From: chudy <chudy_Fernandez_at_yahoo.com>
Date: Sun, 17 Aug 2008 20:41:03 -0700 (PDT)

Using Mingw to compile squid --with-large-files
following Patch MinGW for long file pointers
http://mdsh.com/wiki/jsp/Wiki?Mplayer:build%20on%20MinGW&highlight=build
http://mdsh.com/wiki/jsp/Wiki?Mplayer:build%20on%20MinGW&highlight=build
and edit

io.h file

#ifdef __MSVCRT__
_CRTIMP __int64 __cdecl _filelengthi64(int);
_CRTIMP long __cdecl _findfirsti64(const char*, struct _finddatai64_t*);
_CRTIMP int __cdecl _findnexti64(long, struct _finddatai64_t*);
_CRTIMP __int64 __cdecl _lseeki64(int, __int64, int);
_CRTIMP __int64 __cdecl _telli64(int); <- removed

stat.h file
#if defined (__MSVCRT__) <-removed
struct _stati64 {
    _dev_t st_dev;
    _ino_t st_ino;
    unsigned short st_mode;
    short st_nlink;
    short st_uid;
    short st_gid;
    _dev_t st_rdev;
    __int64 st_size;
    time_t st_atime;
    time_t st_mtime;
    time_t st_ctime;
};

struct __stat64
{
    _dev_t st_dev;
    _ino_t st_ino;
    _mode_t st_mode;
    short st_nlink;
    short st_uid;
    short st_gid;
    _dev_t st_rdev;
    __int64 st_size;
    __time64_t st_atime;
    __time64_t st_mtime;
    __time64_t st_ctime;
};
#endif /* __MSVCRT__ */ <- up to this line

I just want a confirmation if i did the right thing. for now the squid is
running fine with
./configure --enable--enable-win32-service --enable-storeio=aufs,coss
--enable-removal-policies=heap,lru --enable-snmp --disable-wccp
--disable-wccpv2 --enable-large-cache-files --prefix=c:/squid
--with-large-files --enable-err-languages=english
--enable-cachemgr-hostname=server
i've attached my squid.conf store_rewrite and url_rewrite helper.

http://www.nabble.com/file/p19025674/squid.conf squid.conf
http://www.nabble.com/file/p19025674/test.pl test.pl
http://www.nabble.com/file/p19025674/rewrite.pl rewrite.pl

one thing i've seeing Warnings about failed to unpack meta data that i've
never seen in aufs. and still the same Warnings using 2.7 stable version
when using coss.

-- 
View this message in context: http://www.nabble.com/Mingw%28patch-for-long-file-pointers%29---with-large-files-tp19025674p19025674.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Mon Aug 18 2008 - 03:41:10 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 12:00:03 MDT