1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/security/fpm/files/patch-src-main.c
Anders Nordby 60a578e0f5 Make port build on 4.x.
Noticed by:	kris/pointyhat
2005-06-04 05:39:28 +00:00

24 lines
700 B
C

--- src/main.c.orig Sat Jun 4 07:32:53 2005
+++ src/main.c Sat Jun 4 07:33:15 2005
@@ -32,15 +32,16 @@
int
main (int argc, char *argv[])
{
-#ifdef ENABLE_NLS
- bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
- textdomain (PACKAGE);
-#endif
char *opt_file_name = NULL;
const struct poptOption options[] = {
{"file", 'f', POPT_ARG_STRING, &opt_file_name, 0,
N_("Name of the password file to open"), N_("PASSWORDFILE")},
{NULL, '\0', 0, NULL, 0}};
+
+#ifdef ENABLE_NLS
+ bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
+ textdomain (PACKAGE);
+#endif
gnome_init_with_popt_table("fpm", VERSION, argc, argv, options, 0, NULL);
// gnome_init("fpm", VERSION, argc, argv);