equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
43 |
43 |
44 /* |
44 /* |
45 * A collection of useful strings. One should think of these as #define |
45 * A collection of useful strings. One should think of these as #define |
46 * entries, but actual strings can be more efficient (with many compilers). |
46 * entries, but actual strings can be more efficient (with many compilers). |
47 */ |
47 */ |
48 #ifdef __linux__ |
48 #ifdef __solaris__ |
|
49 static const char *system_dir = "/usr/jdk"; |
|
50 static const char *user_dir = "/jdk"; |
|
51 #else /* !__solaris__, i.e. Linux, AIX,.. */ |
49 static const char *system_dir = "/usr/java"; |
52 static const char *system_dir = "/usr/java"; |
50 static const char *user_dir = "/java"; |
53 static const char *user_dir = "/java"; |
51 #else /* Solaris */ |
|
52 static const char *system_dir = "/usr/jdk"; |
|
53 static const char *user_dir = "/jdk"; |
|
54 #endif |
54 #endif |
55 |
55 |
56 #include <dlfcn.h> |
56 #include <dlfcn.h> |
57 #ifdef __linux__ |
57 #ifdef __solaris__ |
|
58 #include <thread.h> |
|
59 #else |
58 #include <pthread.h> |
60 #include <pthread.h> |
59 #else |
|
60 #include <thread.h> |
|
61 #endif |
61 #endif |
62 |
62 |
63 #define JVM_DLL "libjvm.so" |
|
64 #define JAVA_DLL "libjava.so" |
|
65 #define LD_LIBRARY_PATH "LD_LIBRARY_PATH" |
|
66 |
|
67 #endif /* JAVA_MD_SOLINUX_H */ |
63 #endif /* JAVA_MD_SOLINUX_H */ |