From ab629b1bcfb291c1e4bdb3f44e9bceeb33b10e9e Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Tue, 23 Sep 2025 12:34:53 +0300 Subject: [PATCH] Use #include for obtaining the prototype of write() --- getopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getopt.c b/getopt.c index f298da7..aa95877 100644 --- a/getopt.c +++ b/getopt.c @@ -43,9 +43,9 @@ #include /* We're ANSI now; we're guaranteed to have strchr(). */ #include +#include #define ERR(s, c) if(x_opterr){\ - extern int write(int, const void *, unsigned);\ char errbuf[2];\ errbuf[0] = c; errbuf[1] = '\n';\ (void) write(2, argv[0], (unsigned)strlen(argv[0]));\