File xgrabsc-2.41-implicit_decl.patch of Package xgrabsc
--- xgrabsc.c
+++ xgrabsc.c
@@ -34,8 +34,10 @@
*/
#include "xgrabsc.h"
+#include <stdlib.h>
+#include <menu.h>
/* versions of XmuGetClientWindow and screenNumberOfScreen.
* GetClientWindow is used so Xmu need not be linked (causes problems on
@@ -626,7 +629,7 @@
case sourceKey:
childWindow =
#ifdef SELECTION_MASK
- getWindowWhenKeyIsPressed(SELECTION_MASK)
+ getWindowWhenKeyIsPressed(SELECTION_MASK);
#else
getWindowWhenKeyIsPressed(ControlMask);
#endif
--- xgrabxaw.c
+++ xgrabxaw.c
@@ -23,6 +23,7 @@
#include "config.h"
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
--- xgrabxm.c
+++ xgrabxm.c
@@ -22,6 +22,7 @@
#include "config.h"
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>