emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 03249f78153: Fix the DJGPP build


From: Po Lu
Subject: master 03249f78153: Fix the DJGPP build
Date: Tue, 17 Dec 2024 20:40:09 -0500 (EST)

branch: master
commit 03249f78153a34aab70b30f23d26210c1e7ff2a3
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix the DJGPP build
    
    * msdos/sedlibmk.inp (LIB_SELINUX, USE_SELINUX_SELINUX_H):
    Define to 0.
    
    * src/conf_post.h (_GL_DIT_NOTDIR, ENOTSUP) [MSDOS]: Define to
    appropriate values.
---
 msdos/sedlibmk.inp | 2 ++
 src/conf_post.h    | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp
index 624983798c4..15939c85547 100644
--- a/msdos/sedlibmk.inp
+++ b/msdos/sedlibmk.inp
@@ -278,6 +278,7 @@ s/@PACKAGE@/emacs/
 /^LDFLAGS *=/s/@[^@\n]*@//
 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
 /^LIB_PTHREAD *=/s/@[^@\n]*@//
+/^LIB_SELINUX *=/s/@[^@\n]*@//
 /^LIBS *=/s/@[^@\n]*@//
 /^MAKEINFO *=/s/@MAKEINFO@/makeinfo/
 # MKDIR_P lines are edited further below
@@ -367,6 +368,7 @@ s/@PACKAGE@/emacs/
 /^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/
 /^UNISTD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
 /^UNDEFINE_STRTOK_R *=/s/@UNDEFINE_STRTOK_R@/0/
+/^USE_SELINUX_SELINUX_H *=/s/@USE_SELINUX_SELINUX_H@/0/
 /^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/
 /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@//
 /^GNULIBHEADERS_OVERRIDE_WINT_T *=/s/@[^@\n]*@/0/
diff --git a/src/conf_post.h b/src/conf_post.h
index f2353803074..e68d5a56d9b 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -475,3 +475,10 @@ extern int emacs_setenv_TZ (char const *);
 /* Emacs does not need glibc strftime behavior for AM and PM
    indicators.  */
 #define REQUIRE_GNUISH_STRFTIME_AM_PM false
+
+#ifdef MSDOS
+/* These are required by file-has-acl.c but defined in dirent.h and
+   errno.h, which are not generated on DOS.  */
+#define _GL_DT_NOTDIR 0x100   /* Not a directory */
+#define ENOTSUP 2007
+#endif /* MSDOS */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]