FS-4817: --resolve netbsd portability fixes
This commit is contained in:
parent
af9d109212
commit
db20df2300
|
@ -45,7 +45,7 @@ __RCSID("$NetBSD: unvis.c,v 1.28 2005/09/13 01:44:09 christos Exp $");
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <vis.h>
|
#include <vis.h>
|
||||||
|
|
||||||
#if defined(__weak_reference) && !defined(__FreeBSD__)
|
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__)
|
||||||
__weak_alias(strunvis,_strunvis)
|
__weak_alias(strunvis,_strunvis)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -915,14 +915,14 @@ vi_comment_out(EditLine *el, int c)
|
||||||
* NB: posix implies that we should enter insert mode, however
|
* NB: posix implies that we should enter insert mode, however
|
||||||
* this is against historical precedent...
|
* 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);
|
extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
|
||||||
#endif
|
#endif
|
||||||
protected el_action_t
|
protected el_action_t
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
vi_alias(EditLine *el, int c)
|
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_name[3];
|
||||||
char *alias_text;
|
char *alias_text;
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ __RCSID("$NetBSD: vis.c,v 1.35 2006/08/28 20:42:12 christos Exp $");
|
||||||
#include <vis.h>
|
#include <vis.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if defined(__weak_reference) && !defined(__FreeBSD__)
|
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__)
|
||||||
__weak_alias(strsvis,_strsvis)
|
__weak_alias(strsvis,_strsvis)
|
||||||
__weak_alias(strsvisx,_strsvisx)
|
__weak_alias(strsvisx,_strsvisx)
|
||||||
__weak_alias(strvis,_strvis)
|
__weak_alias(strvis,_strvis)
|
||||||
|
|
Loading…
Reference in New Issue