diff options
Diffstat (limited to 'sim/ppc/devices.c')
-rw-r--r-- | sim/ppc/devices.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sim/ppc/devices.c b/sim/ppc/devices.c index c0813d6..46a3eec 100644 --- a/sim/ppc/devices.c +++ b/sim/ppc/devices.c @@ -26,10 +26,7 @@ #define STATIC_INLINE_DEVICES STATIC_INLINE #endif -#include <unistd.h> #include <stdio.h> -#include <string.h> -#include <stdlib.h> #include <fcntl.h> #include <signal.h> #include <stdarg.h> @@ -38,6 +35,22 @@ #include "devices.h" #include "events.h" +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +#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 + #include "cpu.h" #include "bfd.h" |