1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: append forgotten unistd.h inclusion.
This fixes build failure with Gcc 14, as lack of isatty declaration
causes an implicit function declaration, which is fatal with this
compiler level:
.
ecogrep.c:317:29: error: implicit declaration of function ‘isatty’ [-Wimplicit-function-declaration]
317 | if (isatty(fileno(stdin)) == 0)
| ^~~~~~
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074930
Forwarded: no
Last-Update: 2024-07-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- ecopcr.orig/src/ecogrep.c
+++ ecopcr/src/ecogrep.c
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <getopt.h>
#include <stdlib.h>
+#include <unistd.h>
#include <sys/stat.h>
|