$OpenBSD: patch-configure,v 1.2 2002/09/11 05:49:59 pvalchev Exp $
--- configure.orig	Thu Jul 16 10:17:10 1998
+++ configure	Mon Sep  9 09:40:40 2002
@@ -714,14 +714,14 @@ fi
 
 NCURSES_PATH=/usr/include:/usr/include/ncurses:/usr/include/curses:/usr/local/include:/usr/local/include/ncurses:/usr/local/include/curses:./:./ncurses.h
 ncurses_warn=0
-echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
-echo "configure:719: checking for main in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
+echo "configure:719: checking for main in -lcurses" >&5
+ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lncurses  $LIBS"
+LIBS="-lcurses  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 727 "configure"
 #include "confdefs.h"
@@ -745,13 +745,13 @@ LIBS="$ac_save_LIBS"
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
   cat >> confdefs.h <<EOF
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lncurses $LIBS"
+  LIBS="-lcurses $LIBS"
 
 else
   echo "$ac_t""no" 1>&6
@@ -759,7 +759,7 @@ ncurses_warn=1
 fi
 
 
-for ac_prog in ncurses.h
+for ac_prog in curses.h
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -1374,6 +1374,14 @@ EOF
 	OS_OPT=
 	
         ;;
+openbsd*)
+	cat >> confdefs.h <<\EOF
+#define OPENBSD 1
+EOF
+
+	OS_OPT=
+	
+        ;;
 netbsd*)
 	cat >> confdefs.h <<\EOF
 #define NETBSD 1
@@ -1682,7 +1690,7 @@ if test "$no_recursion" != yes; then
     esac
   done
 
-  for ac_config_dir in libpcap; do
+  for ac_config_dir in ; do
 
     # Do not complain, so a configure script can configure whichever
     # parts of a large source tree are present.
