forked from Lainports/freebsd-ports
Don't use amd64 code on all 64-bit architectures.
Include sys/param.h because of:
/usr/local/poudriere/ports/default/cad/openvsp/work/OpenVSP-OpenVSP_3.19.0/src/util/FileUtil.cpp:118:18: error: 'PATH_MAX' was not declared in this scope
118 | char exepath[PATH_MAX];
| ^~~~~~~~
PR: 242235
Approved by: fernape (maintainer), tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D22576
10 lines
229 B
C++
10 lines
229 B
C++
--- src/util/FileUtil.cpp.orig 2019-11-25 15:26:25 UTC
|
|
+++ src/util/FileUtil.cpp
|
|
@@ -21,6 +21,7 @@
|
|
|
|
#ifdef __FreeBSD__
|
|
#include <libgen.h>
|
|
+#include <sys/param.h>
|
|
#endif
|
|
|
|
vector< string > ScanFolder( const char* dir_path )
|