--- ./src/session-child.c.orig
+++ ./src/session-child.c
@@ -198,8 +198,8 @@
 }
 
 /* GNU provides this but we can't rely on that so let's make our own version */
-static void
-updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
+void
+updwtmpx (const char *wtmp_file, const struct utmpx *ut)
 {
     struct utmp u;