Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ff45251efbbb6518cabc8ec39a89cd3eff73af27
parent 3a48c5b56a3031afad411545ecff77be4368e300
Author: Alan Post <>
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.

Mreadwrite.h | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/readwrite.h b/readwrite.h @@ -1,7 +1,6 @@ #ifndef READWRITE_H #define READWRITE_H -extern int read(); -extern int write(); +#include <unistd.h> #endif