petdance/scratch — Issue #454: Add Configure.pl check for <stdint.h>
Author: petdance
Created: 2011-11-01 05:42:23+00:00
State: open
Labels: bug, Pri-normal, Sev-medium

{{{
This patch adds (and uses) a Configure.pl check for .
It is needed on systems that don't have .

diff --git a/config/auto/headers.pm b/config/auto/headers.pm
index 907b365..2d7eb68 100644
--- a/config/auto/headers.pm
+++ b/config/auto/headers.pm
@@ -96,7 +96,7 @@ sub _list_extra_headers {
# hence add sys/types.h to the reprobe list, and have 2 goes at getting
# the header.
my @extra_headers = qw(malloc.h fcntl.h setjmp.h pthread.h signal.h
- sys/types.h sys/socket.h netinet/in.h arpa/inet.h
+ stdint.h sys/types.h sys/socket.h netinet/in.h arpa/inet.h
sys/stat.h sysexit.h limits.h sys/sysctl.h);

# more extra_headers needed on mingw/msys; *BSD fails if they are present
diff --git a/include/parrot/runcore_subprof.h b/include/parrot/runcore_subprof.h
index ef2b345..646bedf 100644
--- a/include/parrot/runcore_subprof.h
+++ b/include/parrot/runcore_subprof.h
@@ -8,7 +8,9 @@
#define PARROT_RUNCORE_SUBPROF_H_GUARD

-#include
+#ifdef PARROT_HAS_HEADER_STDINT
+# include
+#endif /* PARROT_HAS_HEADER_STDINT */
#include "pmc/pmc_sub.h"

typedef struct subprofile subprofile;

--
Andy Dougherty	doughera@lafayette.edu

}}}

Originally http://trac.parrot.org/parrot/ticket/2198