[thirdparty-commits] seanbright: editline/trunk r168 - /editline/trunk/vi.c

SVN commits to the Digium third-party software repository thirdparty-commits at lists.digium.com
Wed Mar 24 13:51:15 CDT 2010


Author: seanbright
Date: Wed Mar 24 13:51:11 2010
New Revision: 168

URL: http://svnview.digium.com/svn/thirdparty?view=rev&rev=168
Log:
Fix build on FreeBSD

Modified:
    editline/trunk/vi.c

Modified: editline/trunk/vi.c
URL: http://svnview.digium.com/svn/thirdparty/editline/trunk/vi.c?view=diff&rev=168&r1=167&r2=168
==============================================================================
--- editline/trunk/vi.c (original)
+++ editline/trunk/vi.c Wed Mar 24 13:51:11 2010
@@ -915,14 +915,14 @@
  * NB: posix implies that we should enter insert mode, however
  * this is against historical precedent...
  */
-#ifdef __weak_reference
+#if defined(__weak_reference) && defined(__NetBSD__)
 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
+#if defined(__weak_reference) && defined(__NetBSD__)
 	char alias_name[3];
 	char *alias_text;
 




More information about the thirdparty-commits mailing list