cad/openvsp: fix build on non-x86

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
This commit is contained in:
Piotr Kubaj 2019-11-27 19:56:26 +00:00
parent f3ea85ac57
commit a67a5042f1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518530
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/external/angelscript/sdk/angelscript/source/as_config.h.orig 2019-11-25 15:18:37 UTC
+++ src/external/angelscript/sdk/angelscript/source/as_config.h
@@ -953,7 +953,7 @@
#define COMPLEX_RETURN_MASK (asOBJ_APP_CLASS_DESTRUCTOR | asOBJ_APP_CLASS_COPY_CONSTRUCTOR | asOBJ_APP_ARRAY)
#define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
#define AS_X86
- #elif defined(__LP64__)
+ #elif defined(__amd64__)
#define AS_X64_GCC
#define HAS_128_BIT_PRIMITIVES
#define SPLIT_OBJS_BY_MEMBER_TYPES

View File

@ -0,0 +1,10 @@
--- 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 )