aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/device_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/device_tree.c')
-rw-r--r--sim/ppc/device_tree.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sim/ppc/device_tree.c b/sim/ppc/device_tree.c
index 0d9f768..3442ba8 100644
--- a/sim/ppc/device_tree.c
+++ b/sim/ppc/device_tree.c
@@ -26,13 +26,23 @@
#define STATIC_INLINE_DEVICE_TREE STATIC_INLINE
#endif
-#include <string.h>
#include <stdio.h>
-#include <stdlib.h>
#include "basics.h"
#include "device_tree.h"
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+
typedef enum {
node_any = 0,
node_device,