+ cat >openssh-3.1p1-i386-unknown-freebsd2.2.5.diff <<EOF
+--- configure.ac-orig Thu Apr 4 00:35:36 2002
++++ configure.ac Thu Apr 4 00:35:45 2002
+@@ -138,6 +138,7 @@
+ ;;
+ *-*-freebsd*)
+ check_for_libcrypt_later=1
++ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+ *-next-*)
+ conf_lastlog_location="/usr/adm/lastlog"
+--- configure-orig Thu Apr 4 00:35:55 2002
++++ configure Thu Apr 4 00:40:37 2002
+@@ -3568,6 +3568,10 @@
+ ;;
+ *-*-freebsd*)
+ check_for_libcrypt_later=1
++ cat >>confdefs.h <<\_ACEOF
++#define HAVE_BOGUS_SYS_QUEUE_H 1
++_ACEOF
++
+ ;;
+ *-next-*)
+ conf_lastlog_location="/usr/adm/lastlog"
+--- defines.h-orig Wed Feb 27 03:40:49 2002
++++ defines.h Thu Apr 4 01:00:56 2002
+@@ -146,7 +146,7 @@
+ including rpc/rpc.h breaks Solaris 6
+ */
+ #ifndef INADDR_LOOPBACK
+-#define INADDR_LOOPBACK ((ulong)0x7f000001)
++#define INADDR_LOOPBACK ((unsigned long)0x7f000001)
+ #endif
+
+ /* Types */
+EOF