Ignore:
Timestamp:
May 25, 2012, 3:59:24 PM (13 years ago)
Author:
dmik
Message:

icedtea-web: DT_SOCKET DLL is JDTSOCK.DLL on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.cc

    r370 r371  
    6363
    6464#include "OS.h"
     65
     66#ifdef __OS2__
     67#define DT_SOCKET_DLL "jdtsock"
     68#else
     69#define DT_SOCKET_DLL "dt_socket"
     70#endif
    6571
    6672#if MOZILLA_VERSION_COLLAPSED < 1090100
     
    473479      goto cleanup_in_pipe;
    474480    }
    475   PLUGIN_DEBUG ("ITNP_New: created input fifo: %d/%d\n", in_pipe[0], in_pipe[1]);
     481  PLUGIN_DEBUG ("ITNP_New: created input fifo: %d/%d\n", in_pipe [0], in_pipe [1]);
    476482#else
    477483  // in_pipe_name
     
    506512  if (socketpair (AF_LOCAL, SOCK_STREAM, 0, out_pipe) == -1)
    507513    {
    508       PLUGIN_ERROR_TWO ("Failed to create input pipe", strerror (errno));
     514      PLUGIN_ERROR_TWO ("Failed to create output pipe", strerror (errno));
    509515      np_error = NPERR_GENERIC_ERROR;
    510516      goto cleanup_out_pipe;
    511517    }
    512   PLUGIN_DEBUG ("ITNP_New: created output fifo: %d/%d\n", out_pipe[0], out_pipe[1]);
     518  PLUGIN_DEBUG ("ITNP_New: created output fifo: %d/%d\n", out_pipe [0], out_pipe [1]);
    513519#else
    514520  // out_pipe_name
     
    553559  // out_to_appletviewer
    554560#ifdef __OS2__
    555   out_to_appletviewer = g_io_channel_unix_new (out_pipe[0]);
     561  out_to_appletviewer = g_io_channel_unix_new (out_pipe [0]);
    556562#else
    557563  out_to_appletviewer = g_io_channel_new_file (out_pipe_name,
     
    16231629      if (plugin_debug_suspend)
    16241630      {
    1625           command_line[cmd_num++] = g_strdup("-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y");
     1631          command_line[cmd_num++] = g_strdup("-Xrunjdwp:transport="DT_SOCKET_DLL",address=8787,server=y,suspend=y");
    16261632      } else
    16271633      {
    1628           command_line[cmd_num++] = g_strdup("-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n");
     1634          command_line[cmd_num++] = g_strdup("-Xrunjdwp:transport="DT_SOCKET_DLL",address=8787,server=y,suspend=n");
    16291635      }
    16301636      command_line[cmd_num++] = g_strdup("sun.applet.PluginMain");
Note: See TracChangeset for help on using the changeset viewer.