From: Stefan Knoblich Date: Mon, 11 Feb 2008 19:11:24 +0000 (+0000) Subject: Resurrect the lost FreeBSD __weak_references fix from the previous libedit version. X-Git-Tag: v1.0-rc1~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df16edead2bffccc6d6a8fc5b2e300d1579d0d73;p=thirdparty%2Ffreeswitch.git Resurrect the lost FreeBSD __weak_references fix from the previous libedit version. -This line, and those below, will be ignored-- M vi.c git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7584 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/libedit/src/vi.c b/libs/libedit/src/vi.c index 5107bd2ec1..bb408d329c 100644 --- a/libs/libedit/src/vi.c +++ b/libs/libedit/src/vi.c @@ -915,14 +915,14 @@ vi_comment_out(EditLine *el, int c) * NB: posix implies that we should enter insert mode, however * this is against historical precedent... */ -#ifdef __weak_reference +#if defined(__weak_reference) && !defined(__FreeBSD__) 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(__FreeBSD__) char alias_name[3]; char *alias_text;