Sha256: 3c788655357c0ca47bbeec2efc97816fe3b6146b16df4cff60c51700c50e63a7

Contents?: true

Size: 822 Bytes

Versions: 8

Compression:

Stored size: 822 Bytes

Contents

diff -ruN libedit-20120601-3.0/src/vi.c libedit-20120601-3.0.fixed/src/vi.c
--- libedit-20120601-3.0/src/vi.c	2012-03-11 09:54:58.000000000 +0000
+++ libedit-20120601-3.0.fixed/src/vi.c	2013-02-08 05:22:16.338954507 +0000
@@ -918,17 +918,15 @@
  * NB: posix implies that we should enter insert mode, however
  * this is against historical precedent...
  */
-#ifdef __weak_reference
-__weakref_visible char *my_get_alias_text(const char *)
-    __weak_reference(get_alias_text);
-#endif
 protected el_action_t
 /*ARGSUSED*/
 vi_alias(EditLine *el, Int c __attribute__((__unused__)))
 {
-#ifdef __weak_reference
+#ifdef __weak_extern
	char alias_name[3];
	char *alias_text;
+	extern __weakref_visible char *my_get_alias_text(const char *);
+	__weak_extern(get_alias_text);

	if (my_get_alias_text == 0) {
		return CC_ERROR;

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
omnibus-3.2.2 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.2.1 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.2.0 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.2.0.rc.3 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.2.0.rc.2 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.2.0.rc.1 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.1.1 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch
omnibus-3.1.0 spec/data/complicated/config/patches/libedit/freebsd-vi-fix.patch