2020 *
2121 *
2222 * IDENTIFICATION
23- *$Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.20 2002/10/22 19:15:23 momjian Exp $
23+ *$Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.21 2002/10/25 01:33:17 momjian Exp $
2424 *
2525 *-------------------------------------------------------------------------
2626 */
@@ -129,7 +129,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH)
129129if (AH -> FH == NULL )
130130die_horribly (NULL ,modulename ,"could not open output file: %s\n" ,strerror (errno ));
131131
132- ctx -> hasSeek = ( fseeko ( AH -> FH , 0 , SEEK_CUR ) == 0 );
132+ ctx -> hasSeek = checkSeek ( AH -> FH );
133133
134134if (AH -> compression < 0 || AH -> compression > 9 )
135135AH -> compression = Z_DEFAULT_COMPRESSION ;
@@ -147,7 +147,7 @@ InitArchiveFmt_Files(ArchiveHandle *AH)
147147if (AH -> FH == NULL )
148148die_horribly (NULL ,modulename ,"could not open input file: %s\n" ,strerror (errno ));
149149
150- ctx -> hasSeek = ( fseeko ( AH -> FH , 0 , SEEK_CUR ) == 0 );
150+ ctx -> hasSeek = checkSeek ( AH -> FH );
151151
152152ReadHead (AH );
153153ReadToc (AH );