src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
   634         DTRACE_PRINTLN1("\ncouldn't open shared library: %s\n", dlerror());
   634         DTRACE_PRINTLN1("\ncouldn't open shared library: %s\n", dlerror());
   635     }
   635     }
   636 }
   636 }
   637 #endif
   637 #endif
   638 #if !defined(__linux__) && !defined(MACOSX) /* Solaris */
   638 #if !defined(__linux__) && !defined(MACOSX) /* Solaris */
   639 static void xinerama_init_solaris()
   639 static void xinerama_init_solaris(void)
   640 {
   640 {
   641     void* libHandle = NULL;
   641     void* libHandle = NULL;
   642     unsigned char fbhints[MAXFRAMEBUFFERS];
   642     unsigned char fbhints[MAXFRAMEBUFFERS];
   643     int32_t locNumScr = 0;
   643     int32_t locNumScr = 0;
   644     /* load and run XineramaGetInfo */
   644     /* load and run XineramaGetInfo */
   918     if (xerr->minor_code == X_ShmAttach) {
   918     if (xerr->minor_code == X_ShmAttach) {
   919         xshmAttachFailed = JNI_TRUE;
   919         xshmAttachFailed = JNI_TRUE;
   920     }
   920     }
   921     return 0;
   921     return 0;
   922 }
   922 }
   923 jboolean isXShmAttachFailed() {
   923 jboolean isXShmAttachFailed(void) {
   924     return xshmAttachFailed;
   924     return xshmAttachFailed;
   925 }
   925 }
   926 void resetXShmAttachFailed() {
   926 void resetXShmAttachFailed(void) {
   927     xshmAttachFailed = JNI_FALSE;
   927     xshmAttachFailed = JNI_FALSE;
   928 }
   928 }
   929 
   929 
   930 extern int mitShmPermissionMask;
   930 extern int mitShmPermissionMask;
   931 
   931