summaryrefslogtreecommitdiff
path: root/devel/simavr/files/patch-examples_parts_uart__pty.c
blob: a3f340f6bdbd7cad792793b415188de25eb74c46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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"