Skip to content

Commit

Permalink
[tools] fixup pbc_to_exe fix, missing unistd.h with --optimize
Browse files Browse the repository at this point in the history
PARROT_HAS_HEADER_UNISTD is only defined after loading parrot/api.h
Fixes #1117
  • Loading branch information
Reini Urban committed Nov 3, 2014
1 parent 9e8c7f1 commit 23e5e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/dev/pbc_to_exe.winxed
Expand Up @@ -37,16 +37,16 @@ const string C_HEADER = <<:HEADER
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef PARROT_HAS_HEADER_UNISTD
# include <unistd.h> /* for readlink() */
#endif
#ifdef __APPLE__
# include <mach-o/dyld.h> /* for _NSGetExecutablePath() */
#endif
#ifdef __FreeBSD__
# include <sys/sysctl.h>
#endif
#include "parrot/api.h"
#ifdef PARROT_HAS_HEADER_UNISTD
# include <unistd.h> /* for readlink() */
#endif

int Parrot_set_config_hash(Parrot_PMC interp_pmc);
static void show_last_error_and_exit(Parrot_PMC interp);
Expand Down

0 comments on commit 23e5e0c

Please sign in to comment.