X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fs51.src%2Fuc51.cc;h=bd23d3d715eac8e9fb9a9a79574ddaea4c689818;hb=d46f1ad41d63b49a39c6616a9918a29cbc1755e4;hp=815b34c8f1c472f3cf661404337b109ce2c24a29;hpb=2deb910bd0d831f531395241e3fe0338c2f1ab13;p=fw%2Fsdcc diff --git a/sim/ucsim/s51.src/uc51.cc b/sim/ucsim/s51.src/uc51.cc index 815b34c8..bd23d3d7 100644 --- a/sim/ucsim/s51.src/uc51.cc +++ b/sim/ucsim/s51.src/uc51.cc @@ -30,9 +30,13 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include #include +#ifdef HAVE_TERMIOS_H #include -#include +#endif +#ifdef HAVE_UNISTD_H #include +#endif +#include #include #include #include @@ -148,8 +152,10 @@ cl_51core::mk_hw_elements(void) h->init(); hws->add(h= new cl_timer1(this, 1, "timer1")); h->init(); +#ifdef HAVE_TERMIOS_H hws->add(h= new cl_serial(this)); h->init(); +#endif hws->add(h= new cl_port(this, 0)); h->init(); hws->add(h= new cl_port(this, 1));