Author: Alan Post <firstname.lastname@example.org>
Date: Sat, 24 Aug 2019 07:47:08 -0600
include unistd.h in readwrite.h to declare read, write.
read(2) and write(2) are declared in unistd.h. Instead of
redeclaring them in readwrite.h, include that system header to
get the correct function signature.
Note this change also appears in Gentoo's 1.06-readwrite.patch.
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/readwrite.h b/readwrite.h
@@ -1,7 +1,6 @@
-extern int read();
-extern int write();