drop workaround now that realpath() accepts NULL as second argument

ok jasper@
This commit is contained in:
naddy 2011-07-27 17:46:22 +00:00
parent 6bbc28fb14
commit 6b4a8cf11c
2 changed files with 2 additions and 17 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.25 2011/06/08 17:37:46 jasper Exp $
# $OpenBSD: Makefile,v 1.26 2011/07/27 17:46:22 naddy Exp $
COMMENT= reminder program for prevention of RSI
DISTNAME= workrave-1.9.3
CATEGORIES= productivity x11
REVISION= 1
REVISION= 2
HOMEPAGE= http://www.workrave.org/

View File

@ -1,15 +0,0 @@
$OpenBSD: patch-frontend_common_src_SoundPlayer_cc,v 1.1 2011/01/16 20:34:40 ajacoutot Exp $
Our realpath(3) does not support resolved to be specified as NULL.
--- frontend/common/src/SoundPlayer.cc.orig Sat Jan 15 10:28:46 2011
+++ frontend/common/src/SoundPlayer.cc Sat Jan 15 10:29:27 2011
@@ -522,7 +522,7 @@ SoundPlayer::load_sound_theme(const string &themefilen
gchar *pathname = g_build_filename(themedir, filename, NULL);
if (pathname != NULL)
{
-#ifdef HAVE_REALPATH
+#if defined HAVE_REALPATH && !defined __OpenBSD__
sound_pathname = realpath(pathname, NULL);
if (sound_pathname == NULL)
{