diff options
| author | Camille Mougey <commial@gmail.com> | 2014-12-12 15:29:00 +0100 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2014-12-12 15:29:00 +0100 |
| commit | 04967c6c99b9744797a3b09de5e86a316c7517e9 (patch) | |
| tree | e335144a535519e561b0d9c727c621b657dc907f | |
| parent | 57b686760de66ad26f80337f0acfb88ea368845f (diff) | |
| parent | 33ef2982528634c9de6cf5a806a1a86df2e14db8 (diff) | |
| download | miasm-04967c6c99b9744797a3b09de5e86a316c7517e9.tar.gz miasm-04967c6c99b9744797a3b09de5e86a316c7517e9.zip | |
Merge pull request #21 from serpilliere/compil_netbsd
Compil netbsd
| -rw-r--r-- | miasm2/jitter/vm_mngr.h | 4 | ||||
| -rw-r--r-- | test/utils/testset.py | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/miasm2/jitter/vm_mngr.h b/miasm2/jitter/vm_mngr.h index 92e0f7ed..e365bcee 100644 --- a/miasm2/jitter/vm_mngr.h +++ b/miasm2/jitter/vm_mngr.h @@ -20,6 +20,10 @@ #ifdef __APPLE__ #define __BYTE_ORDER __BYTE_ORDER__ +#elif defined(__NetBSD__) +#define __BYTE_ORDER _BYTE_ORDER +#define __BIG_ENDIAN _BIG_ENDIAN +#define __LITTLE_ENDIAN _LITTLE_ENDIAN #endif #define Endian16_Swap(value) \ diff --git a/test/utils/testset.py b/test/utils/testset.py index 94e5fe1f..0fa8329b 100644 --- a/test/utils/testset.py +++ b/test/utils/testset.py @@ -1,5 +1,6 @@ import os import subprocess +import sys from multiprocessing import cpu_count, Queue, Process from test import Test @@ -142,7 +143,8 @@ class TestSet(object): os.chdir(test.base_dir) # Launch test - testpy = subprocess.Popen(["python"] + init_args + test.command_line, + testpy = subprocess.Popen(([sys.executable] + + init_args + test.command_line), stdout=subprocess.PIPE, stderr=subprocess.PIPE) outputs = testpy.communicate() |