Index: src/bin/pg_dump/pg_backup_custom.c =================================================================== RCS file: /cvsroot/pgsql-server/src/bin/pg_dump/pg_backup_custom.c,v retrieving revision 1.22 diff -c -c -r1.22 pg_backup_custom.c *** src/bin/pg_dump/pg_backup_custom.c 22 Oct 2002 19:15:23 -0000 1.22 --- src/bin/pg_dump/pg_backup_custom.c 22 Oct 2002 21:36:30 -0000 *************** *** 431,437 **** if (tctx->dataState == K_OFFSET_NO_DATA) return; ! if (!ctx->hasSeek || tctx->dataState == K_OFFSET_POS_NOT_SET) { /* Skip over unnecessary blocks until we get the one we want. */ --- 431,441 ---- if (tctx->dataState == K_OFFSET_NO_DATA) return; ! if (!ctx->hasSeek || tctx->dataState == K_OFFSET_POS_NOT_SET ! #if !defined(HAVE_FSEEKO) ! || sizeof(off_t) > sizeof(long) ! #endif ! ) { /* Skip over unnecessary blocks until we get the one we want. */ *************** *** 809,815 **** * be ok to just use the existing self-consistent block * formatting. */ ! if (ctx->hasSeek) { fseeko(AH->FH, tpos, SEEK_SET); WriteToc(AH); --- 813,823 ---- * be ok to just use the existing self-consistent block * formatting. */ ! if (ctx->hasSeek ! #if !defined(HAVE_FSEEKO) ! && sizeof(off_t) <= sizeof(long) ! #endif ! ) { fseeko(AH->FH, tpos, SEEK_SET); WriteToc(AH);