$NetBSD: patch-bs,v 1.2 2008/04/05 21:29:14 kristerw Exp $

--- src/xmenu.c.orig	1998-12-28 23:15:47.000000000 +0100
+++ src/xmenu.c	2008-04-02 22:40:18.000000000 +0200
@@ -35,6 +35,7 @@
 #include <config.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "lisp.h"
 #include "termhooks.h"
 #include "frame.h"
@@ -1500,7 +1501,7 @@
     {
       XtManageChild (x->menubar_widget);
       XtMapWidget (x->menubar_widget);
-      XtVaSetValues (x->menubar_widget, XtNmappedWhenManaged, 1, 0);
+      XtVaSetValues (x->menubar_widget, XtNmappedWhenManaged, 1, NULL);
     }
 
   /* Re-manage the text-area widget, and then thrash the sizes.  */
