diff options
author | marcus <marcus@FreeBSD.org> | 2005-04-24 12:29:33 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-04-24 12:29:33 +0800 |
commit | a1c04b238f9344e9bcea80c4f242cc10abd142f1 (patch) | |
tree | 53ab08a6bf15c4f0086707cca66e2a883ad0308c /x11/gnome-swallow | |
parent | ff9809bb3f23d01f280a8358dc16539f3dfd6c71 (diff) | |
download | freebsd-ports-gnome-a1c04b238f9344e9bcea80c4f242cc10abd142f1.tar.gz freebsd-ports-gnome-a1c04b238f9344e9bcea80c4f242cc10abd142f1.tar.zst freebsd-ports-gnome-a1c04b238f9344e9bcea80c4f242cc10abd142f1.zip |
Fix the build on 4.X.
Reported by: pointyhat via kris
Diffstat (limited to 'x11/gnome-swallow')
-rw-r--r-- | x11/gnome-swallow/files/patch-gnome-swallow.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/x11/gnome-swallow/files/patch-gnome-swallow.c b/x11/gnome-swallow/files/patch-gnome-swallow.c index c363265c9b02..49b5b5c1fba6 100644 --- a/x11/gnome-swallow/files/patch-gnome-swallow.c +++ b/x11/gnome-swallow/files/patch-gnome-swallow.c @@ -1,12 +1,12 @@ ---- gnome-swallow.c.orig Wed Apr 16 03:02:18 2003 -+++ gnome-swallow.c Wed Apr 16 03:05:58 2003 +--- 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 <sys/types.h> +#include <sys/time.h> #include <string.h> #include <stdio.h> - -@@ -52,7 +54,7 @@ + #include <signal.h> +@@ -55,7 +57,7 @@ gboolean swallow(char* wantedWindow, Dis XSync (display, FALSE); @@ -15,7 +15,7 @@ now = start = (double)tv.tv_sec + ((double)tv.tv_usec / 1000000.0); while (ready == FALSE && now < (start + 10.0)) -@@ -128,7 +130,7 @@ +@@ -131,7 +133,7 @@ gboolean swallow(char* wantedWindow, Dis fprintf(stderr,"Loop"); gtk_main_iteration_do(FALSE); @@ -24,3 +24,18 @@ 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); + } + |