Index: src/vte.c
===================================================================
--- src/vte.c	(revision 1517)
+++ 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 1517)
+++ src/vte.h	(working copy)
@@ -197,7 +197,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 +205,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,
