summaryrefslogtreecommitdiff
path: root/TNCEmulators.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-07-22 20:56:59 +0100
committerDave Hibberd <hibby@debian.org>2025-07-22 20:56:59 +0100
commit1f40ff4a07793ecfa679a1384053451c4f3f536f (patch)
treec0813999c7216f98b4ac66224bd01589baee84d1 /TNCEmulators.c
parentb128f2a43a16acef50de045ae6526772c04c395e (diff)
New upstream version 6.0.24.77+repackupstream/6.0.24.77+repack
Diffstat (limited to 'TNCEmulators.c')
-rw-r--r--TNCEmulators.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/TNCEmulators.c b/TNCEmulators.c
index 135d318..7fce453 100644
--- a/TNCEmulators.c
+++ b/TNCEmulators.c
@@ -241,8 +241,14 @@ typedef struct _SERIAL_STATUS {
#ifndef WIN32
-#ifdef MACBPQ
+#if defined(MACBPQ)
#include <util.h>
+#elif defined(FREEBSD)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <libutil.h>
+#else
+#include <util.h>
+#endif
#endif
extern int posix_openpt (int __oflag);
@@ -262,7 +268,7 @@ HANDLE LinuxOpenPTY(char * Name)
u_long param=1;
struct termios term;
-#ifdef MACBPQ
+#if defined(MACBPQ) || defined(FREEBSD)
// Create a pty pair