Mac-specific: BGL dictionaries under Mac OS X (issue #128)

This commit is contained in:
Abs62 2013-02-13 16:53:43 +04:00
parent 5f27fbcc72
commit 757ad64247

View file

@ -99,7 +99,14 @@ bool Babylon::open()
fflush( f );
#ifdef Q_OS_MACX
/* Under Mac OS X the above technique don't set reopen position properly */
int fn = DUP( fileno( f ) );
lseek( fn, i, SEEK_SET );
file = gzdopen( fn, "r" );
#else
file = gzdopen( DUP( fileno( f ) ), "r" );
#endif
fclose( f );