$OpenBSD: patch-DPF_dgl_src_Window_cpp,v 1.1.1.1 2021/03/29 19:51:31 sthen Exp $

get_current_dir_name not available on OpenBSD

--- DPF/dgl/src/Window.cpp.orig	Tue Feb  9 14:55:13 2021
+++ DPF/dgl/src/Window.cpp	Tue Feb  9 14:55:56 2021
@@ -1016,7 +1016,7 @@ bool Window::openFileBrowser(const FileBrowserOptions&
 
     if (startDir.isEmpty())
     {
-        if (char* const dir_name = get_current_dir_name())
+        if (char* const dir_name = getcwd(NULL,0))
         {
             startDir = dir_name;
             std::free(dir_name);
