aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/window.c b/window.c
index 81e28ce3..2b1ab572 100644
--- a/window.c
+++ b/window.c
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.42 2008-06-18 19:34:50 nicm Exp $ */
+/* $Id: window.c,v 1.43 2008-06-18 20:11:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -37,9 +37,11 @@
#ifdef USE_PTY_H
#include <pty.h>
#else
+#ifndef NO_FORKPTY
#include <util.h>
#endif
#endif
+#endif
#include "tmux.h"
@@ -185,7 +187,7 @@ window_create(const char *name,
fatal("putenv failed");
}
sigreset();
- log_debug("started child: cmd=%s; pid=%d", cmd, getpid());
+ log_debug("started child: cmd=%s; pid=%d", cmd, (int) getpid());
log_close();
execl(_PATH_BSHELL, "sh", "-c", cmd, (char *) NULL);