1 $NetBSD: patch-jdk_src_solaris_bin_ergo__i586.c,v 1.1 2015/07/03 20:40:59 fhajny Exp $
5 --- jdk/src/solaris/bin/ergo_i586.c.orig
6 +++ jdk/src/solaris/bin/ergo_i586.c
9 static unsigned long physical_processors(void);
12 +#if defined(__solaris__) && !defined(_GNU_SOURCE)
15 * A utility method for asking the CPU about itself.
20 +#endif /* __solaris__ && !_GNU_SOURCE */
23 /* The definition of a server-class machine for solaris-i586/amd64 */
25 ServerClassMachineImpl(void) {
28 #endif /* __solaris__ */
31 +#if defined(__linux__) || (defined(__solaris__) && defined(_GNU_SOURCE))
34 * A utility method for asking the CPU about itself.
40 /* The definition of a server-class machine for linux-i586 */
42 ServerClassMachineImpl(void) {
44 (result == JNI_TRUE ? "true" : "false"));
47 +#endif /* !__solaris__ */
48 #endif /* __linux__ */