$OpenBSD: patch-dynload_c,v 1.1 2001/09/04 23:26:31 lebel Exp $
--- dynload.c.orig	Wed Jul 14 21:23:43 1999
+++ dynload.c	Mon Sep  3 22:36:30 2001
@@ -36,7 +36,7 @@
 #include <dlfcn.h>
 #endif
 
-#if defined(HAVE_LIBGEN) && defined(HAVE_LIBGEN_H)
+#if defined(HAVE_LIBGEN) && defined(HAVE_LIBGEN_H) && !defined(__OpenBSD__)
 #include <libgen.h>
 /* if we have pathfind, get the file name with $LD_LIBRARY_PATH or $S48_EXTERN_PATH */
 static char *shared_object_name(char *name)
