freebsd-ports/audio/synthpod-lv2/files/patch-subprojects_d2tk_src_base__pty.c
Yuri Victorovich b15afc1d5d audio/synthpod-lv2: update g20190407 → g20230521
PR:		274798
Reported by:	Daniel Engberg <diizzy@FreeBSD.org>
2023-10-29 19:31:24 -07:00

30 lines
606 B
C

--- subprojects/d2tk/src/base_pty.c.orig 1970-01-01 00:00:00 UTC
+++ subprojects/d2tk/src/base_pty.c
@@ -9,14 +9,26 @@
#include <string.h>
#include <fcntl.h>
#include <vterm.h>
+#ifdef __FreeBSD__
+#include <libutil.h>
+#include <sys/ioctl.h>
+#include <sys/_termios.h>
+#else
#include <pty.h>
-#include <utmp.h>
+#endif
+//#include <utmp.h>
#include <sched.h>
#include <limits.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <pthread.h>
#include <stdatomic.h>
+
+#ifdef __FreeBSD__
+extern char **environ;
+
+#define execvpe(a, b, c) execvp(a, b)
+#endif
#include "base_internal.h"