diff options
Diffstat (limited to 'src/hub.c')
-rw-r--r-- | src/hub.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -31,10 +31,11 @@ #include <stdlib.h> #include <string.h> #include <strings.h> -#include <gtk/gtk.h> +#ifdef INCLUDE_GTK_SUPPORT +# include <gtk/gtk.h> +#endif -#include <config.h> #include <i18n.h> @@ -178,7 +179,7 @@ static void show_hub_help(const char *name) printf("\n"); - printf("Usage: %s add-client [--help] [--version] [--verbosity] [--name <string>] [--port <integer>] [--backlog <integer>]\n", + printf("Usage: %s run [--help] [--version] [--verbosity] [--name <string>] [--port <integer>] [--backlog <integer>] [--keep]\n", base); printf("\n"); @@ -354,7 +355,9 @@ int main(int argc, char **argv) /* Initialisation de GTK */ g_set_prgname("Chrysalide Hub"); +#ifdef INCLUDE_GTK_SUPPORT gtk_init(&argc, &argv); +#endif /* Initialisation du programme */ |