ports/devel/simavr/files/patch-examples_parts_uart__pty.c
Kurt Jaeger b4cef57a43 New port: devel/simavr
This is a port of simavr, an AVR simulator using avr-gcc's register
definitions.

WWW: https://github.com/buserror/simavr

PR:		208475
Submitted by:	Felix Palmen <felix@palmen-it.de>
2016-04-06 16:09:05 +00:00

18 lines
349 B
C

--- examples/parts/uart_pty.c.orig 2016-01-19 09:41:55 UTC
+++ examples/parts/uart_pty.c
@@ -30,8 +30,15 @@
#ifdef __APPLE__
#include <util.h>
#else
+#ifdef FREEBSD
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <termios.h>
+#include <libutil.h>
+#else
#include <pty.h>
#endif
+#endif
#include "uart_pty.h"
#include "avr_uart.h"