aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-01-08 18:45:00 -0600
committerRob Landley <rob@landley.net>2019-01-08 18:45:00 -0600
commit60dea9ec5208b161d7720b6d6fb4e27219252661 (patch)
treeeb9ae9821458ad30eea0bdfa1c30865ff2fb4127
parent3a3860a05a98964a4348fc112a2d9d90f9ce67d3 (diff)
downloadtoybox-60dea9ec5208b161d7720b6d6fb4e27219252661.tar.gz
FreeBSD doesn't #define IUTF8 in termios.h, add workaround to portability.h.
-rw-r--r--lib/portability.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 932752c6..a2a1cd79 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -178,6 +178,11 @@ int clearenv(void);
#include <util.h>
#elif !defined(__FreeBSD__)
#include <pty.h>
+#else
+#include <termios.h>
+#ifndef IUTF8
+#define IUTF8 0
+#endif
#endif
#ifndef __FreeBSD__