$OpenBSD: patch-xcalc_c,v 1.1 2016/03/18 17:40:09 naddy Exp $
--- xcalc.c.orig	Sun Aug  3 19:59:00 1997
+++ xcalc.c	Fri Mar 18 18:32:32 2016
@@ -33,6 +33,8 @@ static char *rcsid_xcalc_c = "$XConsortium: xcalc.c,v 
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
 #include <math.h>
 #include <signal.h>
 #include <X11/Xos.h>
@@ -43,8 +45,6 @@ static char *rcsid_xcalc_c = "$XConsortium: xcalc.c,v 
 
 /* program icon */
 #include "icon"
-
-extern int errno;
 
 
 /* constants used for setting up the calculator.  changing them would 
