$NetBSD: patch-aq,v 1.1 2012/02/24 18:36:48 christos Exp $

--- lib/mpeg2t/mpeg2t_extract.cpp.orig	2007-03-29 14:52:16.000000000 -0400
+++ lib/mpeg2t/mpeg2t_extract.cpp	2012-02-24 13:05:47.000000000 -0500
@@ -34,7 +34,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;
@@ -119,10 +119,8 @@
     if (buflen > 0) {
       memmove(buffer, buffer + readfromfile - buflen, buflen);
     }
-    fgetpos(ifile, &pos);
-    uint64_t position;
-    FPOS_TO_VAR(pos, uint64_t, position);
-    fprintf(stdout, "file pos %llu\n", position);
+    pos = ftello(ifile);
+    fprintf(stdout, "file pos %llu\n", pos);
     readfromfile = buflen + fread(buffer + buflen, 1, BUFFER_SIZE - buflen, ifile);
     buflen = readfromfile;
     ptr = buffer;
