Index: src/vte.c
===================================================================
--- src/vte.c	(revision 1518)
+++ src/vte.c	(working copy)
@@ -2842,7 +2842,7 @@
  *
  * Returns: the ID of the new process
  */
-GPid
+pid_t
 vte_terminal_fork_command(VteTerminal *terminal,
 			  const char *command, char **argv, char **envv,
 			  const char *directory,
@@ -2889,7 +2889,7 @@
 	}
 
 	/* Start up the command and get the PTY of the master. */
-	return _vte_terminal_fork_basic(terminal, command, argv, envv,
+	return (pid_t) _vte_terminal_fork_basic(terminal, command, argv, envv,
 				        directory, lastlog, utmp, wtmp);
 }
 
@@ -2914,19 +2914,15 @@
  *
  * Since: 0.11.11
  */
-GPid
+pid_t
 vte_terminal_forkpty(VteTerminal *terminal,
 		     char **envv, const char *directory,
 		     gboolean lastlog, gboolean utmp, gboolean wtmp)
 {
-	GPid ret;
-
 	g_return_val_if_fail(VTE_IS_TERMINAL(terminal), -1);
 
-	ret = _vte_terminal_fork_basic(terminal, NULL, NULL, envv,
+	return (pid_t) _vte_terminal_fork_basic(terminal, NULL, NULL, envv,
 				       directory, lastlog, utmp, wtmp);
-
-	return ret;
 }
 
 /* Handle an EOF from the client. */
Index: src/vte.h
===================================================================
--- src/vte.h	(revision 1518)
+++ src/vte.h	(working copy)
@@ -23,6 +23,8 @@
 #include <gtk/gtk.h>
 #include <pango/pango.h>
 
+#include <sys/types.h> /* for pid_t */
+
 G_BEGIN_DECLS
 
 /* Private implementation details. */
@@ -197,7 +199,7 @@
 
 /* You can get by with just these two functions. */
 GtkWidget *vte_terminal_new(void);
-GPid vte_terminal_fork_command(VteTerminal *terminal,
+pid_t vte_terminal_fork_command(VteTerminal *terminal,
 				const char *command, char **argv,
 				char **envv, const char *directory,
 				gboolean lastlog,
@@ -205,7 +207,7 @@
 				gboolean wtmp);
 
 /* Users of libzvt may find this useful. */
-GPid vte_terminal_forkpty(VteTerminal *terminal,
+pid_t vte_terminal_forkpty(VteTerminal *terminal,
 			   char **envv, const char *directory,
 			   gboolean lastlog,
 			   gboolean utmp,
Index: src/pty.c
===================================================================
--- src/pty.c	(revision 1518)
+++ src/pty.c	(working copy)
@@ -64,7 +64,7 @@
 #endif
 #include "../gnome-pty-helper/gnome-pty.h"
 static gboolean _vte_pty_helper_started = FALSE;
-static GPid _vte_pty_helper_pid = -1;
+static pid_t _vte_pty_helper_pid = -1;
 static int _vte_pty_helper_tunnel = -1;
 static GTree *_vte_pty_helper_map = NULL;
 #endif
Index: src/pty.h
===================================================================
--- src/pty.h	(revision 1518)
+++ src/pty.h	(working copy)
@@ -19,9 +19,6 @@
 #ifndef vte_pty_h_included
 #define vte_pty_h_included
 
-
-#include <sys/types.h>
-
 G_BEGIN_DECLS
 
 /* Start up the given binary (exact path, not interpreted at all) in a
