fix of bug #533274
authordrdani <drdani@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 2 Sep 2002 07:34:03 +0000 (07:34 +0000)
committerdrdani <drdani@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 2 Sep 2002 07:34:03 +0000 (07:34 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2092 4a8a32a2-be11-0410-ad9d-d568d2c75423

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"