From 897f33bf316dd95107377c7bc7a9162482abcc4c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 18 Dec 2022 18:05:57 +0800 Subject: [PATCH] Fix the MS-DOS build * src/lread.c (syms_of_lread): Make the MS-DOS build work again. --- src/lread.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/lread.c b/src/lread.c index 51ea3e5b929..d838a18de5a 100644 --- a/src/lread.c +++ b/src/lread.c @@ -5479,11 +5479,16 @@ to the specified file name if a suffix is allowed or required. */); DEFVAR_LISP ("dynamic-library-suffixes", Vdynamic_library_suffixes, doc: /* A list of suffixes for loadable dynamic libraries. */); - Vdynamic_library_suffixes = - Fcons (build_pure_c_string (DYNAMIC_LIB_SECONDARY_SUFFIX), Qnil); - Vdynamic_library_suffixes = - Fcons (build_pure_c_string (DYNAMIC_LIB_SUFFIX), - Vdynamic_library_suffixes); + +#ifndef MSDOS + Vdynamic_library_suffixes + = Fcons (build_pure_c_string (DYNAMIC_LIB_SECONDARY_SUFFIX), Qnil); + Vdynamic_library_suffixes + = Fcons (build_pure_c_string (DYNAMIC_LIB_SUFFIX), + Vdynamic_library_suffixes); +#else + Vdynamic_library_suffixes = Qnil; +#endif DEFVAR_LISP ("load-file-rep-suffixes", Vload_file_rep_suffixes, doc: /* List of suffixes that indicate representations of \ -- 2.39.2