diff options
Diffstat (limited to 'src/include/storage/ipc.h')
-rw-r--r-- | src/include/storage/ipc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/storage/ipc.h b/src/include/storage/ipc.h index aebf51eb661..9d0ec8fd8eb 100644 --- a/src/include/storage/ipc.h +++ b/src/include/storage/ipc.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: ipc.h,v 1.2 1996/10/02 20:40:17 scrappy Exp $ + * $Id: ipc.h,v 1.3 1996/10/11 03:56:27 scrappy Exp $ * * NOTES * This file is very architecture-specific. This stuff should actually @@ -29,6 +29,9 @@ * Many architectures have support for user-level spinlocks (i.e., an * atomic test-and-set instruction). However, we have only written * spinlock code for the architectures listed. + * NB: for operating systems like NetBSD (covered by BSD44_derived), + * we may in fact have different architectures, thus make the tests + * based on portnames somewhat misleading. */ #if defined(PORTNAME_aix) || \ defined(PORTNAME_alpha) || \ @@ -45,6 +48,10 @@ #define HAS_TEST_AND_SET #endif +#if defined(PORTNAME_BSD44_derived) && defined(__mips__) +#undef HAS_TEST_AND_SET +#endif + #if defined(HAS_TEST_AND_SET) #if defined(PORTNAME_aix) |