diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 6a09cb1f4af6cd83fe7711e0e2c03fe69624f594..3fe4d621b0fd2eed20d9dc6d6f2857ae165fe3eb 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -11,6 +11,9 @@
 #if defined(__i386__)
 typedef unsigned char slock_t;
 
+#elif defined(__sparc__)
+typedef unsigned char slock_t;
+
 #elif defined(__powerpc__)
 typedef unsigned int slock_t;