Include <unistd.h> for lseek()
authorGeorge Koehler <kernigh@gmail.com>
Fri, 22 Mar 2019 17:18:07 +0000 (13:18 -0400)
committerGeorge Koehler <kernigh@gmail.com>
Fri, 22 Mar 2019 17:18:07 +0000 (13:18 -0400)
commitf8cbe044479c99861f60134270f70153dca3266c
tree7ec8d3aece81175d457795a68b10e19515add311
parent3f61c0d507b82fcb6b23313ec1c6d4b698816749
Include <unistd.h> for lseek()

This unbreaks my build in OpenBSD.  The old `long lseek()` conflicts
with `off_t lseek()` in OpenBSD headers, because long and off_t are
different types.  Commit b4df26e caused "system.h" to include some
headers where OpenBSD declares lseek().

Manuals for lseek() say to #include <unistd.h>.  Do so to be portable
to systems where other headers don't declare lseek().
modules/src/system/open.c
modules/src/system/seek.c