diff --git a/src/frontend/misccoms.c b/src/frontend/misccoms.c index 0afda2c0d..a8ef938e4 100644 --- a/src/frontend/misccoms.c +++ b/src/frontend/misccoms.c @@ -23,6 +23,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group #include "variable.h" #include "com_unset.h" +#ifndef SHARED_MODULE #ifdef HAVE_GNUREADLINE #include #include @@ -33,6 +34,7 @@ extern char history_file[]; #include extern char history_file[]; #endif +#endif #ifdef SHARED_MODULE extern void rem_controls(void); @@ -291,12 +293,14 @@ static void byemesg(void) { +#ifndef SHARED_MODULE #if defined(HAVE_GNUREADLINE) || defined(HAVE_BSDEDITLINE) /* write out command history only when saying goodbye. */ if (cp_interactive && (cp_maxhistlength > 0)) { stifle_history(cp_maxhistlength); write_history(history_file); } +#endif #endif printf("%s-%s done\n", ft_sim->simulator, ft_sim->version);