diff options
author | Rob Landley <rob@landley.net> | 2019-01-08 18:45:00 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-08 18:45:00 -0600 |
commit | 60dea9ec5208b161d7720b6d6fb4e27219252661 (patch) | |
tree | eb9ae9821458ad30eea0bdfa1c30865ff2fb4127 /lib | |
parent | 3a3860a05a98964a4348fc112a2d9d90f9ce67d3 (diff) | |
download | toybox-60dea9ec5208b161d7720b6d6fb4e27219252661.tar.gz |
FreeBSD doesn't #define IUTF8 in termios.h, add workaround to portability.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 5 |
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__ |