diff -u -N flpr-2.4-0.old/config.h BUILD/config.h
--- flpr-2.4-0.old/config.h	2003-10-16 16:56:47.000000000 -0500
+++ BUILD/config.h	2003-09-18 14:18:52.000000000 -0500
@@ -16,10 +16,11 @@
 #define UNAME_CALL
 #define GETHOSTNAME_CALL
 #define HOSTIP
+#define ERRNOH
 
-static char machinename[] = "purpc03.fnal.gov";
+static char machinename[] = "imeni.fnal.gov";
 static char organization[] = "Fermi National Accelerator Laboratory";
-static char machine[] = "purpc03";
+static char machine[] = "imeni";
 static char domain[] = ".fnal.gov";
 static char prthost[] = "fnprt.fnal.gov";
 static char prtque[] = "sys$print";
diff -u -N flpr-2.4-0.old/config.h.SH BUILD/config.h.SH
--- flpr-2.4-0.old/config.h.SH	1999-02-08 13:26:04.000000000 -0600
+++ BUILD/config.h.SH	2003-09-18 14:16:41.000000000 -0500
@@ -18,6 +18,7 @@
 #$d_uname UNAME_CALL
 #$d_gethostname GETHOSTNAME_CALL
 #$d_HOSTIP HOSTIP
+#$d_errno_h ERRNOH
 
 static char machinename[] = "$hostname$mydomain";
 static char organization[] = "$orgname";
diff -u -N flpr-2.4-0.old/config.sh BUILD/config.sh
--- flpr-2.4-0.old/config.sh	2003-10-16 16:56:47.000000000 -0500
+++ BUILD/config.sh	2003-09-18 14:18:49.000000000 -0500
@@ -51,7 +51,7 @@
 bin='/usr/local/bin'
 contains='grep'
 # defeditor=''
-hostname='purpc03'
+hostname='imeni'
 phostname='uname -n'
 mydomain='.fnal.gov'
 libc='/usr/lib/libc.a'
@@ -66,6 +66,7 @@
 d_usgnames='undef'
 d_uname='define'
 d_gethostname='define'
+d_errno_h='define'
 # passcat=''
 # yp=''
 orgname='Fermi National Accelerator Laboratory'
diff -u -N flpr-2.4-0.old/Configure BUILD/Configure
--- flpr-2.4-0.old/Configure	1999-02-08 13:26:04.000000000 -0600
+++ BUILD/Configure	2003-09-18 14:13:17.000000000 -0500
@@ -94,6 +94,7 @@
 d_usgnames=''
 d_uname=''
 d_gethostname=''
+d_errno_h=''
 # passcat=''
 # yp=''
 orgname='No Name City, Erehwon, Terra, Milky Way, Local Cluster'
@@ -1191,6 +1192,46 @@
     prtdflts="$ans"
 done
 
+========================================================================
+: get errno.h handling
+if test -r /usr/include/errno.h
+then
+$cat << 'EOH'
+ 
+Your system has an /usr/include/errno.h file.
+
+Do you want use it instead of ``extern int errno;''?
+
+EOH
+dflt="y"
+errnodflt="no default"
+while test "X$errnodflt" = "Xno default"; do
+    rp="Use /usr/include/errno.h: [$dflt]"
+    $echo $n "$rp $c"
+    . ./myread
+    errnodflt="$ans"
+    case $errnodflt in
+    y*)  errnodflt='y'
+	 d_errno_h='define'
+         ;;
+    n*)  errnodflt='n'
+	 d_errno_h='undef'
+         ;;
+    *)   errnodflt="no default"
+         ;;
+    esac
+done
+else
+$cat << 'EOH'
+ 
+Your system does not have an /usr/include/errno.h file.
+Therefore, ``extern in errno;'' will be used.
+
+EOH
+d_errno_h='undef'
+fi
+========================================================================
+
 : get compiler options for networking programs
 $cat << 'EOH'
  
@@ -1326,6 +1367,7 @@
 d_usgnames='$d_usgnames'
 d_uname='$d_uname'
 d_gethostname='$d_gethostname'
+d_errno_h='$d_errno_h'
 # passcat='$passcat'
 # yp='$yp'
 orgname='$orgname'
diff -u -N flpr-2.4-0.old/flpr.c BUILD/flpr.c
--- flpr-2.4-0.old/flpr.c	2003-10-16 16:57:14.000000000 -0500
+++ BUILD/flpr.c	2003-09-18 14:20:40.000000000 -0500
@@ -64,7 +64,7 @@
  V1.17  06-AUG-02  RJH  Make the version match the FRHL rpm name.
 */
 
-static char Version[] =  "flpr-2.4-3f.i386.rpm";
+static char Version[] =  "flpr-2.4-4f.i386.rpm";
 
 #include "config.h"
 
@@ -294,7 +294,11 @@
 
 static int socketfd = -1;
 
+#ifdef ERRNOH
+#include <errno.h>
+#else
 extern int errno;
+#endif
 static int saved_errno;
 #ifndef linux
 extern char *sys_errlist[];
@@ -1799,7 +1803,7 @@
 		} else
 #endif
 #ifdef ECONNREFUSED
-		if(errno == ECONNREFUSED && timo <= 16) {
+		if(errno == ECONNREFUSED && time_out <= 16) {
 		    sleep(time_out);
 		    time_out += time_out>>1;
 		    continue;
diff -u -N flpr-2.4-0.old/flprmessages BUILD/flprmessages
--- flpr-2.4-0.old/flprmessages	1969-12-31 18:00:00.000000000 -0600
+++ BUILD/flprmessages	2003-09-18 14:34:15.000000000 -0500
@@ -0,0 +1 @@
+Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed.
