Mercurial > hg > graal-jvmci-8
diff src/os/bsd/vm/jvm_bsd.h @ 4006:436b4a3231bf
7098194: integrate macosx-port changes
Summary: Integrate bsd-port/hotspot and macosx-port/hotspot changes as of 2011.09.29.
Reviewed-by: kvn, dholmes, never, phh
Contributed-by: Christos Zoulas <christos@zoulas.com>, Greg Lewis <glewis@eyesbeyond.com>, Kurt Miller <kurt@intricatesoftware.com>, Alexander Strange <astrange@apple.com>, Mike Swingler <swingler@apple.com>, Roger Hoover <rhoover@apple.com>, Victor Hernandez <vhernandez@apple.com>, Pratik Solanki <psolanki@apple.com>
author | dcubed |
---|---|
date | Thu, 13 Oct 2011 09:35:42 -0700 |
parents | f08d439fab8c |
children | 11c26bfcf8c7 |
line wrap: on
line diff
--- a/src/os/bsd/vm/jvm_bsd.h Mon Oct 10 21:01:36 2011 -0400 +++ b/src/os/bsd/vm/jvm_bsd.h Thu Oct 13 09:35:42 2011 -0700 @@ -41,6 +41,21 @@ * This file is currently collecting system-specific dregs for the * JNI conversion, which should be sorted out later. */ +#ifdef __NetBSD__ +/* + * Since we are compiling with c++, we need the following to make c macros + * visible. + */ +# if !defined(__STDC_LIMIT_MACROS) +# define __STDC_LIMIT_MACROS 1 +# endif +# if !defined(__STDC_CONSTANT_MACROS) +# define __STDC_CONSTANT_MACROS 1 +# endif +# if !defined(__STDC_FORMAT_MACROS) +# define __STDC_FORMAT_MACROS 1 +# endif +#endif #include <dirent.h> /* For DIR */ #include <sys/param.h> /* For MAXPATHLEN */