summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/diff/diff.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/diff/diff.c b/contrib/diff/diff.c
index ab1549b..2fbaae7 100644
--- a/contrib/diff/diff.c
+++ b/contrib/diff/diff.c
@@ -24,7 +24,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "diff.h"
#include <signal.h>
#include "getopt.h"
+#ifdef __FreeBSD__
+#include <locale.h>
+#include <fnmatch.h>
+#else
#include "fnmatch.h"
+#endif
#ifndef DEFAULT_WIDTH
#define DEFAULT_WIDTH 130
@@ -235,6 +240,9 @@ main (argc, argv)
int width = DEFAULT_WIDTH;
int show_c_function = 0;
+#ifdef __FreeBSD__
+ setlocale(LC_ALL, "");
+#endif
/* Do our initializations. */
initialize_main (&argc, &argv);
program_name = argv[0];
OpenPOWER on IntegriCloud