$OpenBSD: patch-src_backend_storage_lmgr_s_lock_c,v 1.1.1.1 2016/12/18 18:13:25 jeremy Exp $
--- src/backend/storage/lmgr/s_lock.c.orig	Sun May 11 14:16:48 2014
+++ src/backend/storage/lmgr/s_lock.c	Thu May 15 21:52:50 2014
@@ -219,7 +219,7 @@ static void
 tas_dummy()
 {
 	__asm__		__volatile__(
-#if defined(__NetBSD__) && defined(__ELF__)
+#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__ELF__)
 /* no underscore for label and % for registers */
 										 "\
 .global		tas 				\n\
