Bug#430337: gs-gpl: FTBFS on GNU/kFreeBSD
Package: gs-gpl
Severity: important
Version: 8.56.dfsg.1-1.1
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
Under glibc (on both Linux and GNU/kFreeBSD),
there is no fdopen64() function at all.
Please, could you apply the patch bellow.
It would also be nice if you can inform upstream
about this issue.
Thanks in advance
Petr
--- gs-gpl-8.56.dfsg.1.orig/src/gpmisc.c
+++ gs-gpl-8.56.dfsg.1/src/gpmisc.c
@@ -93,7 +93,7 @@
* fdopen as (char *), rather than following the POSIX.1 standard,
* which defines it as (const char *). Patch this here.
*/
-#if defined (O_LARGEFILE)
+#if 0 && defined (O_LARGEFILE)
file = (b64 ? fdopen64 : fdopen)(fildes, (char *)mode); /* still really const */
#else
file = fdopen(fildes, (char *)mode); /* still really const */
Reply to: