summaryrefslogtreecommitdiffstats
path: root/deskutils/gnotime/files/patch-src::main.c
diff options
context:
space:
mode:
authoradamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059>2004-05-25 08:35:00 +0800
committeradamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059>2004-05-25 08:35:00 +0800
commit857b8a40a0b2a7903aed4ae04719259c3183b7d9 (patch)
treefcac76bed932370228318900b923b2b68675ef84 /deskutils/gnotime/files/patch-src::main.c
parentb90b0ac99e2582445f7b2da09b34cfe480323b9b (diff)
downloadmarcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.tar
marcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.tar.gz
marcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.tar.bz2
marcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.tar.lz
marcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.tar.xz
marcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.tar.zst
marcuscom-ports-857b8a40a0b2a7903aed4ae04719259c3183b7d9.zip
Fix build on 4.X.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2318 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'deskutils/gnotime/files/patch-src::main.c')
-rw-r--r--deskutils/gnotime/files/patch-src::main.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/deskutils/gnotime/files/patch-src::main.c b/deskutils/gnotime/files/patch-src::main.c
new file mode 100644
index 000000000..8d101c9cc
--- /dev/null
+++ b/deskutils/gnotime/files/patch-src::main.c
@@ -0,0 +1,36 @@
+--- src/main.c.orig Mon May 24 20:21:51 2004
++++ src/main.c Mon May 24 20:23:18 2004
+@@ -689,11 +689,7 @@
+ int
+ main(int argc, char *argv[])
+ {
+-#if defined (HAVE_DECL_WNOHANG) || defined (HAVE_DECL_SA_NOCLDWAIT)
+- struct sigaction reapchildren;
+- memset(&reapchildren, 0, sizeof reapchildren);
+-#endif /* WNOHANG/SA_NOCLDWAIT */
+-
++ GnomeClient *client;
+ static char *geometry_string = NULL;
+ static const struct poptOption geo_options[] =
+ {
+@@ -704,6 +700,11 @@
+ {NULL, '\0', 0, NULL, 0}
+ };
+
++#if defined (HAVE_DECL_WNOHANG) || defined (HAVE_DECL_SA_NOCLDWAIT)
++ struct sigaction reapchildren;
++ memset(&reapchildren, 0, sizeof reapchildren);
++#endif /* WNOHANG/SA_NOCLDWAIT */
++
+ gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv,
+ GNOME_PARAM_POPT_TABLE, geo_options,
+ GNOME_PROGRAM_STANDARD_PROPERTIES, NULL);
+@@ -713,7 +714,7 @@
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+ textdomain(GETTEXT_PACKAGE);
+
+- GnomeClient *client = gnome_master_client();
++ client = gnome_master_client();
+ g_signal_connect(G_OBJECT(client), "save_yourself",
+ G_CALLBACK(save_state), (gpointer) argv[0]);
+ g_signal_connect(G_OBJECT(client), "die",