From c826acd4e1e812453ee71c32748dc3b02df6dd54 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 4 Jun 2024 15:12:18 +0800 Subject: [PATCH] Fix the DJGPP build * config.bat: Update endian.in-h from endian.in.h. * msdos/sedlibmk.inp (HAVE_ENDIAN_H) (NEXT_AS_FIRST_DIRECTIVE_ENDIAN_H, NEXT_ENDIAN_H, ENDIAN_H) (ENDIAN_H_JUST_MISSING_STDINT, GL_GENERATE_ENDIAN_H_CONDITION): Define appropriately for DJGPP. --- config.bat | 1 + msdos/sedlibmk.inp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/config.bat b/config.bat index 20dbfda5548..36bc5a022f2 100644 --- a/config.bat +++ b/config.bat @@ -280,6 +280,7 @@ If Exist assert.in.h update assert.in.h assert.in-h If Exist byteswap.in.h update byteswap.in.h byteswap.in-h If Exist dirent.in.h update dirent.in.h dirent.in-h If Exist errno.in.h update errno.in.h errno.in-h +If Exist endian.in.h update endian.in.h endian.in-h If Exist execinfo.in.h update execinfo.in.h execinfo.in-h If Exist fcntl.in.h update fcntl.in.h fcntl.in-h If Exist getopt.in.h update getopt.in.h getopt.in-h diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index d0b2da08656..8a2b23c93a5 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp @@ -219,6 +219,7 @@ s/@PACKAGE@/emacs/ /^HAVE_DECL_STRTOUMAX *=/s/@HAVE_DECL_STRTOUMAX@/1/ /^HAVE_DIRENT_H *=/s/@HAVE_DIRENT_H@/1/ /^HAVE_DUP2 *=/s/@HAVE_DUP2@/1/ +/^HAVE_ENDIAN_H *=/s/@HAVE_ENDIAN_H@/1/ /^HAVE_FSYNC *=/s/@HAVE_FSYNC@/1/ /^HAVE_FTRUNCATE *=/s/@HAVE_FTRUNCATE@/1/ /^HAVE_GETHOSTNAME *=/s/@HAVE_GETHOSTNAME@/1/ @@ -288,6 +289,7 @@ s/@PACKAGE@/emacs/ /^MKDIR_P *=/s/@MKDIR_P@/echo/ /^NEXT_AS_FIRST_DIRECTIVE_DIRENT_H *=/s/@[^@\n]*@// /^NEXT_AS_FIRST_DIRECTIVE_ERRNO_H *=/s/@[^@\n]*@// +/^NEXT_AS_FIRST_DIRECTIVE_ENDIAN_H *=/s/@[^@\n]*@// /^NEXT_AS_FIRST_DIRECTIVE_FCNTL_H *=/s/@[^@\n]*@// /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@// /^NEXT_AS_FIRST_DIRECTIVE_LIMITS_H *=/s/@[^@\n]*@// @@ -306,6 +308,7 @@ s/@PACKAGE@/emacs/ /^NEXT_DIRENT_H *=/s/@[^@\n]*@// /^NEXT_DIRENT_H *=/s/@[^@\n]*@// /^NEXT_ERRNO_H *=/s/@[^@\n]*@// +/^NEXT_ENDIAN_H *=/s/@[^@\n]*@// /^NEXT_FCNTL_H *=/s/@[^@\n]*@// /^NEXT_FLOAT_H *=/s/@[^@\n]*@// /^NEXT_GETOPT_H *=/s/@[^@\n]*@// @@ -342,6 +345,8 @@ s/@PACKAGE@/emacs/ /^ALLOCA_H *=/s/@[^@\n]*@/alloca.h/ /^BYTESWAP_H *=/s/@[^@\n]*@/byteswap.h/ /^DIRENT_H *=/s/@[^@\n]*@// +/^ENDIAN_H *=/s/@[^@\n]*@/endian.h/ +/^ENDIAN_H_JUST_MISSING_STDINT *=/s/@[^@\n]*@/1/ /^ERRNO_H *=/s/@[^@\n]*@// /^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/ /^FLOAT_H *=/s/@[^@\n]*@// @@ -436,6 +441,7 @@ s/@echo /@djecho / s/= @GL_GENERATE_ASSERT_H_CONDITION@/= 1/ s/= @GL_GENERATE_ALLOCA_H_CONDITION@/= 1/ s/= @GL_GENERATE_BYTESWAP_H_CONDITION@/= 1/ +s/= @GL_GENERATE_ENDIAN_H_CONDITION@/= 1/ s/= @GL_GENERATE_EXECINFO_H_CONDITION@/= 1/ s/= @GL_GENERATE_IEEE754_H_CONDITION@/= 1/ s/= @GL_GENERATE_STDALIGN_H_CONDITION@/= 1/