Blame texlive-base-20220321-pdf-header-order-fix.patch

c313c6c
diff -up texlive-base-20220321/source/texk/web2c/pdftexdir/pdftoepdf.cc.header-order-fix texlive-base-20220321/source/texk/web2c/pdftexdir/pdftoepdf.cc
c313c6c
--- texlive-base-20220321/source/texk/web2c/pdftexdir/pdftoepdf.cc.header-order-fix	2023-01-31 12:53:39.214112015 -0500
c313c6c
+++ texlive-base-20220321/source/texk/web2c/pdftexdir/pdftoepdf.cc	2023-01-31 12:54:07.175413160 -0500
c313c6c
@@ -17,6 +17,11 @@ You should have received a copy of the G
c313c6c
 with this program.  If not, see <http://www.gnu.org/licenses/>.
c313c6c
 */
c313c6c
 
c313c6c
+/*
c313c6c
+Load aconf.h first to ensure _FILE_OFFSET_BITS is factored in.
c313c6c
+*/
c313c6c
+#include <aconf.h>
c313c6c
+
c313c6c
 /* Do this early in order to avoid a conflict between
c313c6c
    MINGW32 <rpcndr.h> defining 'boolean' as 'unsigned char' and
c313c6c
    <kpathsea/types.h> defining Pascal's boolean as 'int'.
c313c6c
@@ -31,7 +36,6 @@ with this program.  If not, see 
c313c6c
 #include <string.h>
c313c6c
 #include <ctype.h>
c313c6c
 
c313c6c
-#include <aconf.h>
c313c6c
 #include <GString.h>
c313c6c
 #include <gmem.h>
c313c6c
 #include <gfile.h>
c313c6c
diff -up texlive-base-20220321/source/texk/web2c/pdftexdir/pdftosrc.cc.header-order-fix texlive-base-20220321/source/texk/web2c/pdftexdir/pdftosrc.cc
c313c6c
--- texlive-base-20220321/source/texk/web2c/pdftexdir/pdftosrc.cc.header-order-fix	2023-01-31 12:41:21.483166562 -0500
c313c6c
+++ texlive-base-20220321/source/texk/web2c/pdftexdir/pdftosrc.cc	2023-01-31 12:53:15.185853229 -0500
c313c6c
@@ -16,6 +16,12 @@ GNU General Public License for more deta
c313c6c
 You should have received a copy of the GNU General Public License along
c313c6c
 with this program.  If not, see <http://www.gnu.org/licenses/>.
c313c6c
 */
c313c6c
+
c313c6c
+/* 
c313c6c
+Load aconf.h first to ensure _FILE_OFFSET_BITS is factored in.
c313c6c
+*/
c313c6c
+#include <aconf.h>
c313c6c
+
c313c6c
 #include <w2c/config.h>
c313c6c
 
c313c6c
 #include <stdlib.h>
c313c6c
@@ -24,7 +30,6 @@ with this program.  If not, see 
c313c6c
 #include <string.h>
c313c6c
 #include <ctype.h>
c313c6c
 
c313c6c
-#include <aconf.h>
c313c6c
 #include <GString.h>
c313c6c
 #include <gmem.h>
c313c6c
 #include <gfile.h>