$OpenBSD: patch-libavcodec_common_h,v 1.1 2003/04/17 22:16:18 wilfried Exp $
--- libavcodec/common.h.orig   Thu Apr 17 23:49:10 2003
+++ libavcodec/common.h        Fri Apr 18 00:00:45 2003
@@ -158,7 +158,7 @@ typedef signed long long INT64;
 #    include "bswap.h"
 
 #    if defined(__MINGW32__) || defined(__CYGWIN__) || \
-        defined(__OS2__) || defined (__OpenBSD__)
+        defined(__OS2__) || (defined (__OpenBSD__) && ! defined (__ELF__))
 #        define MANGLE(a) "_" #a
 #    else
 #        define MANGLE(a) #a
