fix bug 3947, 'Build break with --disable-libsm --enable-crash-dialog'
authorPaul <paul@claws-mail.org>
Tue, 9 Jan 2018 12:33:05 +0000 (12:33 +0000)
committerPaul <paul@claws-mail.org>
Tue, 9 Jan 2018 12:33:05 +0000 (12:33 +0000)
src/main.c

index 3945401..317b196 100644 (file)
@@ -161,7 +161,7 @@ static DBusGProxy *awn_proxy = NULL;
 #endif
 
 gchar *prog_version;
-#ifdef HAVE_LIBSM
+#if (defined HAVE_LIBSM || defined CRASH_DIALOG)
 gchar *argv0;
 #endif
 
@@ -1009,7 +1009,7 @@ int main(int argc, char *argv[])
        }
 
        prog_version = PROG_VERSION;
-#ifdef HAVE_LIBSM
+#if (defined HAVE_LIBSM || defined CRASH_DIALOG)
        argv0 = g_strdup(argv[0]);
 #endif