src/os/bsd/vm/jvm_bsd.h

changeset 3202
436b4a3231bf
parent 3156
f08d439fab8c
child 3344
11c26bfcf8c7
     1.1 --- a/src/os/bsd/vm/jvm_bsd.h	Mon Oct 10 21:01:36 2011 -0400
     1.2 +++ b/src/os/bsd/vm/jvm_bsd.h	Thu Oct 13 09:35:42 2011 -0700
     1.3 @@ -41,6 +41,21 @@
     1.4   * This file is currently collecting system-specific dregs for the
     1.5   * JNI conversion, which should be sorted out later.
     1.6   */
     1.7 +#ifdef __NetBSD__
     1.8 +/*
     1.9 + * Since we are compiling with c++, we need the following to make c macros
    1.10 + * visible.
    1.11 + */
    1.12 +# if !defined(__STDC_LIMIT_MACROS)
    1.13 +#  define __STDC_LIMIT_MACROS           1
    1.14 +# endif
    1.15 +# if !defined(__STDC_CONSTANT_MACROS)
    1.16 +#  define __STDC_CONSTANT_MACROS        1
    1.17 +# endif
    1.18 +# if !defined(__STDC_FORMAT_MACROS)
    1.19 +#  define __STDC_FORMAT_MACROS          1
    1.20 +# endif
    1.21 +#endif
    1.22  
    1.23  #include <dirent.h>             /* For DIR */
    1.24  #include <sys/param.h>          /* For MAXPATHLEN */

mercurial