$OpenBSD$
--- indra/llcommon/llfile.cpp.orig	Wed Nov  7 20:18:06 2007
+++ indra/llcommon/llfile.cpp	Mon Nov 12 02:10:00 2007
@@ -36,6 +36,9 @@
 #include "llfile.h"
 #include "llstring.h"
 #include "llerror.h"
+#if defined(__OpenBSD__)
+#include <unistd.h>
+#endif
 
 using namespace std;
 
@@ -60,6 +63,8 @@ int	LLFile::rmdir(const	char* dirname)
 	std::string utf8dirname = dirname;
 	llutf16string utf16dirname = utf8str_to_utf16str(utf8dirname);
 	return _wrmdir(utf16dirname.c_str());
+#elif defined(__OpenBSD__)
+	return rmdir(dirname);
 #else
 	return ::rmdir(dirname);
 #endif
