$OpenBSD: patch-include_vlc_common_h,v 1.5 2015/12/22 06:46:54 ajacoutot Exp $
--- include/vlc_common.h.orig	Mon Dec 21 20:46:19 2015
+++ include/vlc_common.h	Mon Dec 21 20:51:06 2015
@@ -561,7 +561,7 @@ static inline unsigned popcount (unsigned x)
 VLC_USED
 static inline unsigned parity (unsigned x)
 {
-#if VLC_GCC_VERSION(3,4)
+#if VLC_GCC_VERSION(3,4) && (defined(__amd64__) || defined(__i386__))
     return __builtin_parity (x);
 #else
     for (unsigned i = 4 * sizeof (x); i > 0; i /= 2)
