summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorimp <imp@openbsd.org>1999-02-02 01:36:00 +0000
committerimp <imp@openbsd.org>1999-02-02 01:36:00 +0000
commit015aa5ca86acd2c0c2b247ff0c597793c888532f (patch)
treec00af32ebddcc1ec17036dba29c92d6eacfab502 /lib
parenttypo (diff)
downloadwireguard-openbsd-015aa5ca86acd2c0c2b247ff0c597793c888532f.tar.xz
wireguard-openbsd-015aa5ca86acd2c0c2b247ff0c597793c888532f.zip
arc fixes for libc_r
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/arch/mips/_atomic_lock.c3
-rw-r--r--lib/libc_r/uthread/uthread_autoinit.c4
-rw-r--r--lib/libpthread/arch/mips/_atomic_lock.c3
-rw-r--r--lib/libpthread/uthread/uthread_autoinit.c4
4 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc_r/arch/mips/_atomic_lock.c b/lib/libc_r/arch/mips/_atomic_lock.c
index 18092da4566..7c075f95e14 100644
--- a/lib/libc_r/arch/mips/_atomic_lock.c
+++ b/lib/libc_r/arch/mips/_atomic_lock.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: _atomic_lock.c,v 1.5 1999/01/10 23:00:02 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.6 1999/02/02 01:36:00 imp Exp $ */
/*
* Atomic lock for mips
*/
+#include "pthread.h"
#include "pthread_private.h"
#include "spinlock.h"
#include <signal.h>
diff --git a/lib/libc_r/uthread/uthread_autoinit.c b/lib/libc_r/uthread/uthread_autoinit.c
index 5ac4592e61c..1bfda4b43b9 100644
--- a/lib/libc_r/uthread/uthread_autoinit.c
+++ b/lib/libc_r/uthread/uthread_autoinit.c
@@ -1,7 +1,7 @@
/*
* David Leonard, 1998. Public Domain. <david.leonard@csee.uq.edu.au>
*
- * $OpenBSD: uthread_autoinit.c,v 1.4 1999/01/10 23:07:59 d Exp $
+ * $OpenBSD: uthread_autoinit.c,v 1.5 1999/02/02 01:36:00 imp Exp $
*/
#include <stdio.h>
@@ -49,7 +49,7 @@ _thread_dot_init()
* found in the .dynamic section into the _INIT field. This then gets
* automatically run by GNU ELF's ld.so.
*/
-#ifdef mips
+#ifdef pmax
extern int _init() __attribute__((constructor,section (".dynamic")));
int
_init()
diff --git a/lib/libpthread/arch/mips/_atomic_lock.c b/lib/libpthread/arch/mips/_atomic_lock.c
index 18092da4566..7c075f95e14 100644
--- a/lib/libpthread/arch/mips/_atomic_lock.c
+++ b/lib/libpthread/arch/mips/_atomic_lock.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: _atomic_lock.c,v 1.5 1999/01/10 23:00:02 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.6 1999/02/02 01:36:00 imp Exp $ */
/*
* Atomic lock for mips
*/
+#include "pthread.h"
#include "pthread_private.h"
#include "spinlock.h"
#include <signal.h>
diff --git a/lib/libpthread/uthread/uthread_autoinit.c b/lib/libpthread/uthread/uthread_autoinit.c
index 5ac4592e61c..1bfda4b43b9 100644
--- a/lib/libpthread/uthread/uthread_autoinit.c
+++ b/lib/libpthread/uthread/uthread_autoinit.c
@@ -1,7 +1,7 @@
/*
* David Leonard, 1998. Public Domain. <david.leonard@csee.uq.edu.au>
*
- * $OpenBSD: uthread_autoinit.c,v 1.4 1999/01/10 23:07:59 d Exp $
+ * $OpenBSD: uthread_autoinit.c,v 1.5 1999/02/02 01:36:00 imp Exp $
*/
#include <stdio.h>
@@ -49,7 +49,7 @@ _thread_dot_init()
* found in the .dynamic section into the _INIT field. This then gets
* automatically run by GNU ELF's ld.so.
*/
-#ifdef mips
+#ifdef pmax
extern int _init() __attribute__((constructor,section (".dynamic")));
int
_init()