summaryrefslogtreecommitdiff
path: root/net/ncftp2/patches/patch-aa
blob: d247be0f4d3ea3a1b6decc68d47814d403be573d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.3 1998/08/07 11:10:47 agc Exp $

--- Main.c.orig	Fri Oct 18 07:01:58 1996
+++ Main.c	Fri Feb 20 14:46:28 1998
@@ -22,6 +22,9 @@
 #include <pwd.h>
 #include <errno.h>
 #include <ctype.h>
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+#include <locale.h>
+#endif
 #include <signal.h>
 #include <setjmp.h>
 #include <stdlib.h>
@@ -866,6 +869,9 @@
 	int opt, result;
 	OpenOptions openopt;
 
+#ifdef __FreeBSD__
+	setlocale(LC_ALL, "");
+#endif
 	Init();
 	RunStartupScript();