FS-4817: --resolve netbsd portability fixes

This commit is contained in:
Michael Jerris 2012-11-09 09:27:47 -05:00
parent af9d109212
commit db20df2300
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ __RCSID("$NetBSD: unvis.c,v 1.28 2005/09/13 01:44:09 christos Exp $");
#include <stdio.h>
#include <vis.h>
#if defined(__weak_reference) && !defined(__FreeBSD__)
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__)
__weak_alias(strunvis,_strunvis)
#endif

View File

@ -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...
*/
#if defined(__weak_reference) && !defined(__FreeBSD__)
#if defined(__weak_reference) && !defined(__FreeBSD__) && !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)
{
#if defined(__weak_reference) && !defined(__FreeBSD__)
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__)
char alias_name[3];
char *alias_text;

View File

@ -88,7 +88,7 @@ __RCSID("$NetBSD: vis.c,v 1.35 2006/08/28 20:42:12 christos Exp $");
#include <vis.h>
#include <stdlib.h>
#if defined(__weak_reference) && !defined(__FreeBSD__)
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__)
__weak_alias(strsvis,_strsvis)
__weak_alias(strsvisx,_strsvisx)
__weak_alias(strvis,_strvis)