Skip to content

Commit

Permalink
- OpenBSD support
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachael Alexanderson committed Mar 5, 2018
1 parent ac47166 commit 099149b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripting/vm/vmexec.cpp
Expand Up @@ -149,7 +149,11 @@ VMExec_Checked::Exec
// Note: If the VM is being used in multiple threads, this should be declared as thread_local.
// ZDoom doesn't need this at the moment so this is disabled.

#ifdef __OpenBSD__
VMFrameStack GlobalVMStack;
#else
thread_local VMFrameStack GlobalVMStack;
#endif


//===========================================================================
Expand Down
4 changes: 4 additions & 0 deletions src/scripting/vm/vmintern.h
Expand Up @@ -433,7 +433,11 @@ void VMFillParams(VMValue *params, VMFrame *callee, int numparam);
void VMDumpConstants(FILE *out, const VMScriptFunction *func);
void VMDisasm(FILE *out, const VMOP *code, int codesize, const VMScriptFunction *func);

#ifdef __OpenBSD__
extern VMFrameStack GlobalVMStack;
#else
extern thread_local VMFrameStack GlobalVMStack;
#endif

typedef std::pair<const class PType *, unsigned> FTypeAndOffset;

Expand Down

0 comments on commit 099149b

Please sign in to comment.