Bug 1674381 - Update pr/include/md/_openbsd.h to allow OpenBSD to build. r=kaie
authorLandry Breuil <landry@openbsd.org>
Wed, 09 Dec 2020 17:25:20 +0100
changeset 4911 339390f0f87dd9fa3e95d9106559e9e3ad4cb5cc
parent 4910 bf6620c143c6ecac676883ae2f261f1fa05f2e32
child 4912 cbbfa71c7e4a155e62732a817f3a3d5c3d9647a9
push id392
push userkaie@kuix.de
push dateWed, 09 Dec 2020 16:26:37 +0000
reviewerskaie
bugs1674381
Bug 1674381 - Update pr/include/md/_openbsd.h to allow OpenBSD to build. r=kaie
pr/include/md/_openbsd.h
--- a/pr/include/md/_openbsd.h
+++ b/pr/include/md/_openbsd.h
@@ -11,20 +11,22 @@
 #define PR_LINKER_ARCH  "openbsd"
 #define _PR_SI_SYSNAME  "OPENBSD"
 #if defined(__i386__)
 #define _PR_SI_ARCHITECTURE "x86"
 #elif defined(__alpha__)
 #define _PR_SI_ARCHITECTURE "alpha"
 #elif defined(__amd64__)
 #define _PR_SI_ARCHITECTURE "amd64"
-#elif defined(__m68k__)
-#define _PR_SI_ARCHITECTURE "m68k"
+#elif defined(__powerpc64__)
+#define _PR_SI_ARCHITECTURE "powerpc64"
 #elif defined(__powerpc__)
 #define _PR_SI_ARCHITECTURE "powerpc"
+#elif defined(__aarch64__)
+#define _PR_SI_ARCHITECTURE "aarch64"
 #elif defined(__sparc__)
 #define _PR_SI_ARCHITECTURE "sparc"
 #elif defined(__arm__)
 #define _PR_SI_ARCHITECTURE "arm"
 #endif
 
 #define PR_DLL_SUFFIX       ".so"
 
@@ -185,16 +187,18 @@ struct _MDCPU {
 #define _MD_INIT_THREAD                 _MD_InitializeThread
 #define _MD_EXIT_THREAD(thread)
 #define _MD_SUSPEND_THREAD(thread)      _MD_suspend_thread
 #define _MD_RESUME_THREAD(thread)       _MD_resume_thread
 #define _MD_CLEAN_THREAD(_thread)
 
 #endif /* ! _PR_PTHREADS */
 
+extern void _MD_EarlyInit(void);
+
 #define _MD_EARLY_INIT                  _MD_EarlyInit
 #define _MD_FINAL_INIT          _PR_UnixInit
 #define _PR_HAVE_CLOCK_MONOTONIC
 
 /*
  * We wrapped the select() call.  _MD_SELECT refers to the built-in,
  * unwrapped version.
  */