From 8ca283dff3b4711d968618bd3c4d32dc45c41cfc Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 7 Apr 2009 22:58:22 +0000 Subject: Add a hack to fix the build with GNOME 2.26. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12235 df743ca5-7f9a-e211-a948-0013205c9059 --- x11/gnome-swallow/files/patch-GNOME_Swallow.server | 17 +++++++++ x11/gnome-swallow/files/patch-Makefile.in | 11 ++++++ x11/gnome-swallow/files/patch-gnome-swallow.c | 41 ++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 x11/gnome-swallow/files/patch-GNOME_Swallow.server create mode 100644 x11/gnome-swallow/files/patch-Makefile.in create mode 100644 x11/gnome-swallow/files/patch-gnome-swallow.c (limited to 'x11/gnome-swallow/files') diff --git a/x11/gnome-swallow/files/patch-GNOME_Swallow.server b/x11/gnome-swallow/files/patch-GNOME_Swallow.server new file mode 100644 index 000000000..1f99ad2a6 --- /dev/null +++ b/x11/gnome-swallow/files/patch-GNOME_Swallow.server @@ -0,0 +1,17 @@ +--- GNOME_Swallow.server.orig Wed Apr 16 03:13:17 2003 ++++ GNOME_Swallow.server Wed Apr 16 03:13:30 2003 +@@ -1,6 +1,6 @@ + + ++ location="%%PREFIX%%/lib/gnome-panel/gnome_swallow"> + + + +@@ -23,4 +23,4 @@ + + + +- +\ No newline at end of file ++ diff --git a/x11/gnome-swallow/files/patch-Makefile.in b/x11/gnome-swallow/files/patch-Makefile.in new file mode 100644 index 000000000..e8914f324 --- /dev/null +++ b/x11/gnome-swallow/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Wed Apr 16 03:11:46 2003 ++++ Makefile.in Wed Apr 16 03:11:57 2003 +@@ -103,7 +103,7 @@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + paneldir = $(prefix)/lib/gnome-panel +-serversdir = $(prefix)/lib/bonobo/servers ++serversdir = $(prefix)/libdata/bonobo/servers + docdir = $(prefix)/share/doc/gnome-swallow + + dist_doc_DATA = README diff --git a/x11/gnome-swallow/files/patch-gnome-swallow.c b/x11/gnome-swallow/files/patch-gnome-swallow.c new file mode 100644 index 000000000..49b5b5c1f --- /dev/null +++ b/x11/gnome-swallow/files/patch-gnome-swallow.c @@ -0,0 +1,41 @@ +--- gnome-swallow.c.orig Fri Sep 12 00:21:55 2003 ++++ gnome-swallow.c Sun Apr 24 00:28:34 2005 +@@ -1,3 +1,5 @@ ++#include ++#include + #include + #include + #include +@@ -55,7 +57,7 @@ gboolean swallow(char* wantedWindow, Dis + + XSync (display, FALSE); + +- gettimeofday(&tv); ++ gettimeofday(&tv, NULL); + now = start = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); + + while (ready == FALSE && now < (start + 10.0)) +@@ -131,7 +133,7 @@ gboolean swallow(char* wantedWindow, Dis + fprintf(stderr,"Loop"); + gtk_main_iteration_do(FALSE); + +- gettimeofday(&tv); ++ gettimeofday(&tv, NULL); + now = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); + } + +@@ -249,13 +251,13 @@ void exitProgram(GtkWidget* w, gpointer + void forkApplet(struct AppletConfigure* ap) + { + if(ap->pid > -1) { ++ int s; + /* Kill the old process and wait for it to die (if the process + is already dead then it will be a zombie anyway). + */ + kill(ap->pid, SIGTERM); + sleep(1); + kill(ap->pid, SIGKILL); +- int s; + waitpid(ap->pid, &s, WNOHANG); + } + -- cgit v1.2.3