fix of bug #533274
[fw/sdcc] / sim / ucsim / gui.src / serio.src / main.cc
index 5ce361226e0afbdc4b52470e6a2044d4920562eb..610d7dbc0bd0addb8a370f84b344ceb3bed36408 100644 (file)
@@ -2,6 +2,7 @@
  * to emulate the serial input and output of an 8051 controller               *
  * main.cc - the main stuff                                                   *
  ******************************************************************************/
+#include "ddconfig.h"
 #include <sys/types.h>
 #include <iostream.h>
 #include <stdlib.h>
@@ -11,7 +12,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <signal.h>
-#include <getopt.h> // FIXME
+#ifdef HAVE_GETOPT_H // fix of bug #533274
+#include <getopt.h>
+#endif
 #include "fileio.hh"
 #include "frontend.hh"
 #include "posix_signal.hh"