summaryrefslogtreecommitdiff
path: root/devel/libedit/files/patch-vi.c
blob: b6dbc2adfe3e38c65f03f64a57b916f909dbc446 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- vi.c.orig	Sun Feb  4 11:49:12 2007
+++ vi.c	Sun Feb  4 11:51:31 2007
@@ -915,16 +915,15 @@
  * NB: posix implies that we should enter insert mode, however
  * this is against historical precedent...
  */
-#ifdef __weak_reference
-extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
-#endif
 protected el_action_t
 /*ARGSUSED*/
 vi_alias(EditLine *el, int c)
 {
-#ifdef __weak_reference
+#ifdef __weak_extern
 	char alias_name[3];
 	char *alias_text;
+	extern char *get_alias_text(const char *);
+	__weak_extern(get_alias_text);
 
 	if (get_alias_text == 0) {
 		return CC_ERROR;