Hi!

I've tried packaging libaacs-0.7.0 for pkgsrc and found one problem.

The configure script does not check for fseeko nor ftello, but just
uses them. On at least NetBSD, fseek/ftell are and have been 64-bit
capable for a really long time.

Can you please add configure tests and only use the *o versions when
they exist?

(attached the workaround patch I'm currently using)

Thanks,
 Thomas
$NetBSD$

--- src/file/file_posix.c.orig  2013-12-18 09:21:16.000000000 +0000
+++ src/file/file_posix.c
@@ -49,7 +49,7 @@ static int64_t file_seek_linux(AACS_FILE
 #if defined(__MINGW32__)
     return fseeko64((FILE *)file->internal, offset, origin);
 #else
-    return fseeko((FILE *)file->internal, offset, origin);
+    return fseek((FILE *)file->internal, offset, origin);
 #endif
 }
 
@@ -58,7 +58,7 @@ static int64_t file_tell_linux(AACS_FILE
 #if defined(__MINGW32__)
     return ftello64((FILE *)file->internal);
 #else
-    return ftello((FILE *)file->internal);
+    return ftell((FILE *)file->internal);
 #endif
 }
 
_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
https://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to