--- clients/olwm/mem.c.orig	1993-06-29 07:11:45.000000000 +0200
+++ clients/olwm/mem.c	2003-12-30 01:31:15.000000000 +0100
@@ -14,8 +14,12 @@
  *
  */
 
-
+#include <sys/param.h>
+#if (defined(BSD) && (BSD >= 199103))
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 #include <memory.h>
 #include <stdio.h>
 #include <sys/types.h>
