mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 09:21:29 +00:00
DragonFly is very similar to OpenBSD with a dash of NetBSD
This commit is contained in:
parent
0c7946bfec
commit
d7794af38b
libs
src/mod/applications/mod_spandsp
@ -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__) && !defined(__NetBSD__)
|
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
|
||||||
__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__) && !defined(__NetBSD__)
|
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
|
||||||
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__) && !defined(__NetBSD__)
|
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
|
||||||
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__) && !defined(__NetBSD__)
|
#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
|
||||||
__weak_alias(strsvis,_strsvis)
|
__weak_alias(strsvis,_strsvis)
|
||||||
__weak_alias(strsvisx,_strsvisx)
|
__weak_alias(strsvisx,_strsvisx)
|
||||||
__weak_alias(strvis,_strvis)
|
__weak_alias(strvis,_strvis)
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#define __ISO_C_VISIBLE 2011
|
#define __ISO_C_VISIBLE 2011
|
||||||
#endif
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(HAVE_MALLOC_H) && !defined(__OpenBSD__)
|
#if defined(HAVE_MALLOC_H) && !defined(__OpenBSD__) && !defined(__DragonFly__)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#undef HAVE_STDLIB_H
|
#undef HAVE_STDLIB_H
|
||||||
#include "switch_private.h"
|
#include "switch_private.h"
|
||||||
#endif
|
#endif
|
||||||
#if !defined(__OpenBSD__) && (defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) || WIN32)
|
#if !defined(__OpenBSD__) && !defined(__DragonFly__) && (defined(HAVE_OPENPTY) || defined(HAVE_DEV_PTMX) || defined(HAVE_POSIX_OPENPT) || WIN32)
|
||||||
#define MODEM_SUPPORT 1
|
#define MODEM_SUPPORT 1
|
||||||
#if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32)
|
#if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32)
|
||||||
#define USE_OPENPTY 1
|
#define USE_OPENPTY 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user