freebsd-ports/devel/libedit/files/patch-vi.c
Cheng-Lung Sung ee71eecb03 - Update of devel/libedit from 2.6.9 to 2.6.10
PR:		ports/108752
Submitted by:	Martin Matuska <martin_AT_matuska dot org>
2007-02-06 03:06:29 +00:00

22 lines
607 B
C

--- 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;