summaryrefslogtreecommitdiff
path: root/net/ncftp2/patches/patch-ab
blob: f2f8f43df700179718164fc6228097344b081097 (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
25
26
27
28
$NetBSD: patch-ab,v 1.4 1999/07/13 01:34:42 jlam Exp $

--- Complete.c.orig	Fri Oct 18 01:10:31 1996
+++ Complete.c	Thu Jul  8 15:33:42 1999
@@ -52,7 +52,11 @@
 typedef char * (*CompleteFunc)(char *, int);
 
 #ifdef HAVE_LIBREADLINE
+#if HAVE_READLINE_H
+#include <readline.h>
+#else
 #include <readline/readline.h>
+#endif
 
 #ifdef HAVE_FILENAME_COMPLETION_FUNCTION
 /* This should have been in your readline.h already, but some older
@@ -241,7 +245,11 @@
 static int
 CompareStrings(char **a, char **b)
 {
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+	return strcoll(*a, *b);
+#else
 	return strcmp(*a, *b);
+#endif
 }
 
 static void