jam: Fix build warnings. Add missing include for POSIX compliant systems.

Warnings were:

Cc bin.linuxx86/fileunix.o
fileunix.c: In function ‘file_archscan’:
fileunix.c:217:6: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
  217 |  if( read( fd, buf, SARMAG ) != SARMAG ||
      |      ^~~~
      |      fread
fileunix.c:220:6: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  220 |      close( fd );
      |      ^~~~~
      |      pclose
fileunix.c:272:3: warning: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration]
  272 |   lseek(fd, offset + SARHDR, 0);
      |   ^~~~~
      |   fseek

Change-Id: Iedcdec01deb929d6c91ebc9d7eb72497fe078dd4
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4399
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Franck LeCodeur 2021-08-27 22:02:33 +02:00 committed by Jérôme Duval
parent f5c73e1b90
commit c3d8487752

View File

@ -58,7 +58,7 @@
# define STRUCT_DIRENT struct dirent # define STRUCT_DIRENT struct dirent
# endif # endif
# ifdef __CYGWIN__ # if defined(__CYGWIN__) || defined(unix)
# include <unistd.h> # include <unistd.h>
# endif # endif