[libnotify] Allow to compile on Hurd
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libnotify] Allow to compile on Hurd
- Date: Sat, 9 Jan 2010 18:40:57 +0000 (UTC)
commit 7b4a0ce00b83bf924591516ee8d27cd4c2e39583
Author: William Jon McCann <jmccann redhat com>
Date: Sat Jan 9 13:19:21 2010 -0500
Allow to compile on Hurd
From http://trac.galago-project.org/ticket/166
tests/test-image.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-image.c b/tests/test-image.c
index 6be1825..0c04f93 100644
--- a/tests/test-image.c
+++ b/tests/test-image.c
@@ -45,8 +45,7 @@ NotifyNotification *n;
int
main(int argc, char *argv[])
{
- char file[PATH_MAX];
- int size;
+ char *file;
char *uri;
GdkPixbuf *icon;
GtkWidget *helper;
@@ -68,10 +67,10 @@ main(int argc, char *argv[])
g_object_unref(G_OBJECT(n));
- size = readlink("/proc/self/cwd", file, PATH_MAX - 1);
- file[size] = '\0';
+ file = g_get_current_dir();
uri = g_strdup_printf("file://%s/%s", file, "applet-critical.png");
+ g_free(file);
printf("sending %s\n", uri);
/* URIs */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]