graphics/instant-meshes: include dirent.h instead of sys/dir.h which is scheduled for removal.
While here modernize USES PR: 238620 Submitted by: rene Approved by: Greg V (maintainer) Event: Berlin Hackathon 2019 (generating the patch)
This commit is contained in:
parent
460a92e9ac
commit
7f0d52068c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504430
2 changed files with 11 additions and 2 deletions
|
@ -17,7 +17,7 @@ LIB_DEPENDS= libglfw.so:graphics/glfw \
|
|||
libtbb.so:devel/tbb
|
||||
RUN_DEPENDS= zenity:x11/zenity
|
||||
|
||||
USES= cmake compiler:c++14-lang eigen:3 localbase:ldflags pkgconfig
|
||||
USES= cmake compiler:c++14-lang eigen:3 gl localbase:ldflags pkgconfig
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= wjakob
|
||||
GH_TUPLE= wjakob:nanogui:2a61f03:nanogui/ext/nanogui \
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
--- ext/nanogui/src/common.cpp.orig 2016-10-15 20:12:12 UTC
|
||||
+++ ext/nanogui/src/common.cpp
|
||||
@@ -248,7 +248,7 @@ std::string file_dialog(const std::vecto
|
||||
@@ -24,7 +24,7 @@
|
||||
#if !defined(_WIN32)
|
||||
#include <locale.h>
|
||||
#include <signal.h>
|
||||
- #include <sys/dir.h>
|
||||
+ #include <dirent.h>
|
||||
#endif
|
||||
|
||||
NAMESPACE_BEGIN(nanogui)
|
||||
@@ -248,7 +248,7 @@ std::string file_dialog(const std::vector<std::pair<st
|
||||
return std::string(ofn.lpstrFile);
|
||||
#else
|
||||
char buffer[FILE_DIALOG_MAX_BUFFER];
|
||||
|
|
Loading…
Reference in a new issue