aboutsummaryrefslogtreecommitdiff
path: root/ftp/ncftp2/files/patch-Main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/ncftp2/files/patch-Main.c')
-rw-r--r--ftp/ncftp2/files/patch-Main.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/ftp/ncftp2/files/patch-Main.c b/ftp/ncftp2/files/patch-Main.c
new file mode 100644
index 000000000000..ab49d540b72f
--- /dev/null
+++ b/ftp/ncftp2/files/patch-Main.c
@@ -0,0 +1,28 @@
+--- Main.c.orig 1998-03-20 11:21:09.000000000 +0800
++++ Main.c 2011-12-22 00:11:54.000000000 +0800
+@@ -19,6 +19,9 @@
+ #include <pwd.h>
+ #include <errno.h>
+ #include <ctype.h>
++#ifdef __FreeBSD__
++#include <locale.h>
++#endif
+ #include <signal.h>
+ #include <setjmp.h>
+ #include <stdlib.h>
+@@ -872,11 +875,14 @@ SigIntMain(/* int sigNum */ void)
+
+
+
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ int opt, result;
+ OpenOptions openopt;
+
++#ifdef __FreeBSD__
++ setlocale(LC_ALL, "");
++#endif
+ Init();
+ RunStartupScript();
+