$NetBSD: patch-ap,v 1.1 2012/02/24 18:36:48 christos Exp $ --- lib/mpeg2t/mpeg2t_dump.cpp.orig 2007-02-07 12:34:16.000000000 -0500 +++ lib/mpeg2t/mpeg2t_dump.cpp 2012-02-24 13:05:14.000000000 -0500 @@ -18,7 +18,7 @@ mpeg2t_es_t *es_pid; mpeg2t_pid_t *pidptr; bool verbose = false; - fpos_t pos; + u_int64_t pos; const char *ProgName = argv[0]; const char *usage = ""; uint16_t pid = 0; @@ -97,11 +97,9 @@ if (buflen > 0) { memmove(buffer, buffer + readfromfile - buflen, buflen); } - fgetpos(ifile, &pos); + pos = ftello(ifile); if (verbose) { - uint64_t position; - FPOS_TO_VAR(pos, uint64_t, position); - fprintf(stdout, "file pos %llu\n", position); + fprintf(stdout, "file pos %llu\n", pos); } readfromfile = buflen + fread(buffer + buflen, 1, BUFFER_SIZE - buflen, ifile); buflen = readfromfile;