diff options
Diffstat (limited to 'sim/ppc/main.c')
-rw-r--r-- | sim/ppc/main.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sim/ppc/main.c b/sim/ppc/main.c index 47f506d..07412be 100644 --- a/sim/ppc/main.c +++ b/sim/ppc/main.c @@ -20,12 +20,22 @@ #include <stdarg.h> -#include <stdlib.h> #include <stdio.h> -#include <string.h> #include "psim.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 + extern char **environ; extern char *optarg; extern int optind; |