$OpenBSD: patch-jdk_src_solaris_native_sun_awt_robot_common_c,v 1.1 2008/03/19 18:05:46 kurt Exp $
--- jdk/src/solaris/native/sun/awt/robot_common.c.orig	Tue Dec  4 04:05:45 2007
+++ jdk/src/solaris/native/sun/awt/robot_common.c	Thu Feb 14 17:55:27 2008
@@ -27,6 +27,9 @@
     #error This file should not be included in headless library
 #endif
 
+#ifdef _ALLBSD_SOURCE
+#include <stdlib.h>
+#endif
 #include "robot_common.h"
 
 /*
