openbsd-ports/audio/gtkpod/patches/patch-src_mp4file_c
2011-11-15 15:43:51 +00:00

29 lines
698 B
Plaintext

$OpenBSD: patch-src_mp4file_c,v 1.1 2011/11/15 15:43:52 mpi Exp $
--- src/mp4file.c Sun Nov 13 17:27:50 2011
+++ src/mp4file.c Sun Nov 13 17:47:00 2011
@@ -35,6 +35,10 @@
# include <endian.h> /* for be32toh () */
#endif
+#ifdef __OpenBSD__
+#define be32toh betoh32
+#endif
+
#include "charset.h"
#include "itdb.h"
#include "misc.h"
@@ -375,11 +379,11 @@
void mp4_init()
{
- mp4v2_handle = dlopen("libmp4v2.so.1", RTLD_LAZY);
+ mp4v2_handle = dlopen("libmp4v2.so", RTLD_LAZY);
if (!mp4v2_handle)
{
- mp4v2_handle = dlopen("libmp4v2.so.0", RTLD_LAZY);
+ mp4v2_handle = dlopen("libmp4v2.so", RTLD_LAZY);
if (!mp4v2_handle)
{