blob: 7587f4866d12d1fcd857c40816a471610b402c17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-as,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $
--- apr/include/apr_atomic.h.orig 2005-07-15 15:16:55.000000000 +0000
+++ apr/include/apr_atomic.h
@@ -28,7 +28,7 @@
/* Platform includes for atomics */
#if defined(NETWARE) || defined(__MVS__) /* OS/390 */
#include <stdlib.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
#include <machine/atomic.h>
#endif
@@ -159,7 +159,7 @@ inline void *apr_atomic_casptr(void **me
return (void*)atomic_cmpxchg((unsigned long *)mem,(unsigned long)cmp,(unsigned long)with);
}
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
#define apr_atomic_t apr_uint32_t
#define apr_atomic_add(mem, val) (atomic_add_int(mem,val),mem)
|