aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/igen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/igen.c')
-rw-r--r--sim/ppc/igen.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c
index cab46a0..3db56c0 100644
--- a/sim/ppc/igen.c
+++ b/sim/ppc/igen.c
@@ -20,12 +20,21 @@
#include <stdio.h>
#include <ctype.h>
-#include <string.h>
#include <getopt.h>
#include "misc.h"
#include "lf.h"
#include "table.h"
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
/****************************************************************/