summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-01-01 21:13:13 +0100
committerAndrea Corallo <akrl@sdf.org>2020-01-01 11:38:19 +0100
commit11192b29adf4ee500f5056d1b02d35908f858b53 (patch)
treeb62b13a72ebbe1cac255d7df83e013d299b91987 /src
parent3ba1b52e277261286738b637e45a675b7d587f58 (diff)
downloademacs-11192b29adf4ee500f5056d1b02d35908f858b53.tar.gz
make standard emacs compilable again
Diffstat (limited to 'src')
-rw-r--r--src/comp.h4
-rw-r--r--src/lread.c5
-rw-r--r--src/pdumper.c2
3 files changed, 7 insertions, 4 deletions
diff --git a/src/comp.h b/src/comp.h
index 33b73548009..86fa54f5158 100644
--- a/src/comp.h
+++ b/src/comp.h
@@ -29,8 +29,6 @@ enum {
#endif
};
-#ifdef HAVE_NATIVE_COMP
-
#include <dynlib.h>
struct Lisp_Native_Comp_Unit
@@ -43,6 +41,8 @@ struct Lisp_Native_Comp_Unit
dynlib_handle_ptr handle;
};
+#ifdef HAVE_NATIVE_COMP
+
INLINE bool
NATIVE_COMP_UNITP (Lisp_Object a)
{
diff --git a/src/lread.c b/src/lread.c
index 1c5268d0dad..d6d13861417 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4464,8 +4464,9 @@ defsubr (union Aligned_Lisp_Subr *aname)
XSETPVECTYPE (sname, PVEC_SUBR);
XSETSUBR (tem, sname);
set_symbol_function (sym, tem);
- if (NATIVE_COMP_FLAG)
- Vcomp_subr_list = Fcons (tem, Vcomp_subr_list);
+#ifdef HAVE_NATIVE_COMP
+ Vcomp_subr_list = Fcons (tem, Vcomp_subr_list);
+#endif
}
#ifdef NOTDEF /* Use fset in subr.el now! */
diff --git a/src/pdumper.c b/src/pdumper.c
index 85809c9978f..ae8fe014e0e 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -5296,6 +5296,7 @@ dump_do_dump_relocation (const uintptr_t dump_base,
dump_write_word_to_dump (dump_base, reloc_offset, value);
break;
}
+#ifdef HAVE_NATIVE_COMP
case RELOC_NATIVE_COMP_UNIT:
{
struct Lisp_Native_Comp_Unit *comp_u =
@@ -5323,6 +5324,7 @@ dump_do_dump_relocation (const uintptr_t dump_base,
subr->function.a0 = func;
break;
}
+#endif
case RELOC_BIGNUM:
{
struct Lisp_Bignum *bignum = dump_ptr (dump_base, reloc_offset);