possible to compile it without the WINDOWID variable.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5259
cda61777-01e9-0310-a592-
d414129be87e
{
int slavefd;
pid_t pid, pgrp;
{
int slavefd;
pid_t pid, pgrp;
+#ifndef NOT_X_WINDOWS /* for Mac OS X native compilation */
pty_frontend = frontend;
*backend_handle = NULL; /* we can't sensibly use this, sadly */
pty_frontend = frontend;
*backend_handle = NULL; /* we can't sensibly use this, sadly */
+#ifndef NOT_X_WINDOWS /* for Mac OS X native compilation */
windowid = get_windowid(pty_frontend);
windowid = get_windowid(pty_frontend);
/*
* Fork and execute the command.
/*
* Fork and execute the command.
sprintf(term_env_var, "TERM=%s", cfg->termtype);
putenv(term_env_var);
}
sprintf(term_env_var, "TERM=%s", cfg->termtype);
putenv(term_env_var);
}
+#ifndef NOT_X_WINDOWS /* for Mac OS X native compilation */
{
char windowid_env_var[40];
sprintf(windowid_env_var, "WINDOWID=%ld", windowid);
putenv(windowid_env_var);
}
{
char windowid_env_var[40];
sprintf(windowid_env_var, "WINDOWID=%ld", windowid);
putenv(windowid_env_var);
}
{
char *e = cfg->environmt;
char *var, *varend, *val, *varval;
{
char *e = cfg->environmt;
char *var, *varend, *val, *varval;