scripts/echo.c: resolve implicit declaration of function 'dup2'
authorNicolas Hüppelshäuser <nicolas.hueppelshaeuser@emlix.com>
Tue, 5 Mar 2019 10:54:23 +0000 (11:54 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 5 Mar 2019 15:57:04 +0000 (16:57 +0100)
Signed-off-by: Nicolas Hüppelshäuser <nicolas.hueppelshaeuser@emlix.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/echo.c

index 8c6b409d3d7bf36b7daa98712b208857a41dc37c..7474ccdd4dbe333140f09030b86a15069cba2ae1 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <limits.h>
+#include <unistd.h>
 
 #define WANT_HEX_ESCAPES 1