git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2092
4a8a32a2-be11-0410-ad9d-
d568d2c75423
* 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>
#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"