From d7794af38b3a00346c9184a028831407393b3094 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sun, 23 Feb 2014 20:43:21 -0600 Subject: [PATCH] DragonFly is very similar to OpenBSD with a dash of NetBSD --- libs/libedit/src/unvis.c | 2 +- libs/libedit/src/vi.c | 4 ++-- libs/libedit/src/vis.c | 2 +- libs/spandsp/src/alloc.c | 2 +- src/mod/applications/mod_spandsp/mod_spandsp_modem.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/libedit/src/unvis.c b/libs/libedit/src/unvis.c index 3d71f6f227..19bacec843 100644 --- a/libs/libedit/src/unvis.c +++ b/libs/libedit/src/unvis.c @@ -45,7 +45,7 @@ __RCSID("$NetBSD: unvis.c,v 1.28 2005/09/13 01:44:09 christos Exp $"); #include #include -#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) +#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) __weak_alias(strunvis,_strunvis) #endif diff --git a/libs/libedit/src/vi.c b/libs/libedit/src/vi.c index f09ba6c1ce..e5fbd3baa9 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... */ -#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); #endif protected el_action_t /*ARGSUSED*/ 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_text; diff --git a/libs/libedit/src/vis.c b/libs/libedit/src/vis.c index 673caa9a15..a771d7a70f 100644 --- a/libs/libedit/src/vis.c +++ b/libs/libedit/src/vis.c @@ -88,7 +88,7 @@ __RCSID("$NetBSD: vis.c,v 1.35 2006/08/28 20:42:12 christos Exp $"); #include #include -#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) +#if defined(__weak_reference) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) __weak_alias(strsvis,_strsvis) __weak_alias(strsvisx,_strsvisx) __weak_alias(strvis,_strvis) diff --git a/libs/spandsp/src/alloc.c b/libs/spandsp/src/alloc.c index 9c5a1211f1..b8cb6810c8 100644 --- a/libs/spandsp/src/alloc.c +++ b/libs/spandsp/src/alloc.c @@ -41,7 +41,7 @@ #define __ISO_C_VISIBLE 2011 #endif #include -#if defined(HAVE_MALLOC_H) && !defined(__OpenBSD__) +#if defined(HAVE_MALLOC_H) && !defined(__OpenBSD__) && !defined(__DragonFly__) #include #endif #include diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_modem.h b/src/mod/applications/mod_spandsp/mod_spandsp_modem.h index 6347d5cb90..80efefd8b7 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_modem.h +++ b/src/mod/applications/mod_spandsp/mod_spandsp_modem.h @@ -35,7 +35,7 @@ #undef HAVE_STDLIB_H #include "switch_private.h" #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 #if !defined(HAVE_POSIX_OPENPT) && !defined(HAVE_DEV_PTMX) && !defined(WIN32) #define USE_OPENPTY 1