With new tls interface, sysarch.h is no longer needed.
authorDavid Xu <davidxu@dragonflybsd.org>
Tue, 22 Feb 2005 14:53:17 +0000 (14:53 +0000)
committerDavid Xu <davidxu@dragonflybsd.org>
Tue, 22 Feb 2005 14:53:17 +0000 (14:53 +0000)
Also remove a leftover #ifdef __DragonFly condition,
we are on native Dragonfly platform now.

lib/libthread_xu/arch/i386/include/pthread_md.h

index 9eacbe2..070dfbd 100644 (file)
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libpthread/arch/i386/include/pthread_md.h,v 1.13 2004/11/06 03:35:51 peter Exp $
- * $DragonFly: src/lib/libthread_xu/arch/i386/include/pthread_md.h,v 1.2 2005/02/22 00:10:00 davidxu Exp $
+ * $DragonFly: src/lib/libthread_xu/arch/i386/include/pthread_md.h,v 1.3 2005/02/22 14:53:17 davidxu Exp $
  */
 
 /*
@@ -36,7 +36,6 @@
 
 #include <stddef.h>
 #include <sys/types.h>
-#include <machine/sysarch.h>
 
 #define        DTV_OFFSET              offsetof(struct tcb, tcb_dtv)
 
@@ -77,7 +76,6 @@ struct tcb {
        __result;                                               \
 })
 
-#ifdef __DragonFly__
 static __inline int
 atomic_cmpset_int(volatile int *dst, int exp, int src)
 {
@@ -98,7 +96,6 @@ atomic_cmpset_int(volatile int *dst, int exp, int src)
 }
 
 #define atomic_cmpset_acq_int  atomic_cmpset_int
-#endif
 
 /*
  * The constructors.