Commit Graph

4 Commits

Author SHA1 Message Date
Franck LeCodeur
c3d8487752 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>
2021-09-02 19:34:43 +00:00
Axel Dörfler
04bfbdfd8f * Applied patch by Christian: build fix for Cygwin.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@31258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-26 16:26:50 +00:00
Ingo Weinhold
7b6de8037d Ported to Haiku.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-28 14:14:44 +00:00
Ingo Weinhold
ecc89c9a6a Moved jam into the buildtools modules, where it belongs.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-29 18:40:48 +00:00