From: Po Lu Date: Wed, 18 Dec 2024 01:39:45 +0000 (+0800) Subject: Fix the DJGPP build X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ae9963e9db69094927902a919dbf6a5cd9677f40;p=emacs.git 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. (cherry picked from commit 03249f78153a34aab70b30f23d26210c1e7ff2a3) --- 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 */