diff options
author | dholland <dholland@pkgsrc.org> | 2008-08-02 18:08:15 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2008-08-02 18:08:15 +0000 |
commit | 2abbf58ff6c86d2af428277bdafc22e786c3c93d (patch) | |
tree | f69bddb62a2db67f2f4f3df92df90f45c10eac41 | |
parent | a3a0cae2b4f41d97ab2f5b733f33ba341226500e (diff) | |
download | pkgsrc-2abbf58ff6c86d2af428277bdafc22e786c3c93d.tar.gz |
Fix broken build on NetBSD due to mremap() API difference, and while
here fix a couple nearby 64-bit glitches.
-rw-r--r-- | audio/libvisual0.2-plugins/distinfo | 3 | ||||
-rw-r--r-- | audio/libvisual0.2-plugins/patches/patch-ac | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/audio/libvisual0.2-plugins/distinfo b/audio/libvisual0.2-plugins/distinfo index caaa84abd8c..cc626bda356 100644 --- a/audio/libvisual0.2-plugins/distinfo +++ b/audio/libvisual0.2-plugins/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2006/07/03 23:31:04 wiz Exp $ +$NetBSD: distinfo,v 1.2 2008/08/02 18:08:15 dholland Exp $ SHA1 (libvisual-plugins-0.2.0.tar.gz) = bc001f66b1c81b747bc06e3e09aaf71882c47370 RMD160 (libvisual-plugins-0.2.0.tar.gz) = 3f4835843e3719e6342a3b8f1478f89388423b37 Size (libvisual-plugins-0.2.0.tar.gz) = 1021051 bytes SHA1 (patch-aa) = 68ffdb6261aafa219df0e5c4d313fc7f865ae734 SHA1 (patch-ab) = 31a380ed59ed9eed1e5516c44fec54c1e7dcf25c +SHA1 (patch-ac) = 2bb5757b041cd3161a77fa71f14628c9013c1298 diff --git a/audio/libvisual0.2-plugins/patches/patch-ac b/audio/libvisual0.2-plugins/patches/patch-ac new file mode 100644 index 00000000000..287749374e3 --- /dev/null +++ b/audio/libvisual0.2-plugins/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.1 2008/08/02 18:08:15 dholland Exp $ + +--- plugins/input/mplayer/input_mplayer.c~ 2005-01-08 17:06:17.000000000 -0500 ++++ plugins/input/mplayer/input_mplayer.c 2008-08-02 14:03:30.000000000 -0400 +@@ -147,7 +147,7 @@ int inp_mplayer_init( VisPluginData *plu + + priv->mmap_area = mmap( 0, sizeof( mplayer_data_t ), + PROT_READ, MAP_SHARED, priv->fd, 0 ); +- visual_log_return_val_if_fail( (int)priv->mmap_area != -1, -1 ); ++ visual_log_return_val_if_fail( priv->mmap_area != (mplayer_data_t *)-1, -1 ); + + if ( priv->mmap_area->nch == 0 ) + { +@@ -169,9 +169,12 @@ int inp_mplayer_init( VisPluginData *plu + } + + priv->mmap_area = mremap( priv->mmap_area, sizeof( mplayer_data_t ), ++#ifdef __NetBSD__ ++ NULL, ++#endif + sizeof( mplayer_data_t ) + priv->mmap_area->bs, + 0 ); +- if ( (int)priv->mmap_area == -1 ) ++ if ( priv->mmap_area == (mplayer_data_t *)-1 ) + { + visual_log( VISUAL_LOG_CRITICAL, + "Could not mremap() area from file '%s' " \ |