$OpenBSD: patch-storage_connect_reldef_cpp,v 1.4 2015/12/21 01:09:51 sthen Exp $
--- storage/connect/reldef.cpp.orig	Wed Dec 16 11:05:45 2015
+++ storage/connect/reldef.cpp	Sat Dec 19 20:21:35 2015
@@ -513,6 +513,10 @@ PTABDEF OEMDEF::GetXdef(PGLOBAL g)
   const char *error = NULL;
   Dl_info dl_info;
     
+#ifndef RTLD_NOLOAD
+#define RTLD_NOLOAD 0
+#endif
+
 #if 0  // Don't know what all this stuff does
   // The OEM lib must retrieve exported CONNECT variables
   if (dladdr(&connect_hton, &dl_info)) {
