patch-2.1.115 linux/include/asm-sparc64/spinlock.h
Next file: linux/include/asm-sparc64/stat.h
Previous file: linux/include/asm-sparc64/softirq.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue Aug 4 16:03:35 1998
- Orig file:
v2.1.114/linux/include/asm-sparc64/spinlock.h
- Orig date:
Sat Aug 16 09:51:10 1997
diff -u --recursive --new-file v2.1.114/linux/include/asm-sparc64/spinlock.h linux/include/asm-sparc64/spinlock.h
@@ -10,8 +10,13 @@
#ifndef __SMP__
-typedef struct { } spinlock_t;
-#define SPIN_LOCK_UNLOCKED { }
+#if (__GNUC__ > 2) || (__GNUC_MINOR__ >= 8)
+ typedef struct { } spinlock_t;
+ #define SPIN_LOCK_UNLOCKED { }
+#else
+ typedef unsigned char spinlock_t;
+ #define SPIN_LOCK_UNLOCKED 0
+#endif
#define spin_lock_init(lock) do { } while(0)
#define spin_lock(lock) do { } while(0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov