mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
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:
parent
f5c73e1b90
commit
c3d8487752
@ -58,7 +58,7 @@
|
||||
# define STRUCT_DIRENT struct dirent
|
||||
# endif
|
||||
|
||||
# ifdef __CYGWIN__
|
||||
# if defined(__CYGWIN__) || defined(unix)
|
||||
# include <unistd.h>
|
||||
# endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user