diff --git a/util/ec_uartd.c b/util/ec_uartd.c index ae2e51a580..24949545f5 100644 --- a/util/ec_uartd.c +++ b/util/ec_uartd.c @@ -13,6 +13,10 @@ /* Force header files to define grantpt(), posix_openpt(), cfmakeraw() */ #define _BSD_SOURCE #define _XOPEN_SOURCE 600 +/* Force header file to declare ptsname_r(), etc. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include #include