⛏️ index : buildtools.git

author Franck LeCodeur <cassisian@gmail.com> 2021-08-27 23:17:44.0 +02:00:00
committer Jérôme Duval <jerome.duval@gmail.com> 2021-08-30 16:36:29.0 +00:00:00
commit
cc988c8c900fc656b52493957b72358ce9fc04e3 [patch]
tree
3e79cf163de063892741fdf1d3bc3628b6cd73e8
parent
88d0e51d38c178db058073d544c33fd5e86ba6e0
download
cc988c8c900fc656b52493957b72358ce9fc04e3.tar.gz

jam: Fix build warning. Add missing include for Linux.

Warning was:

Cc bin.linuxx86/execunix.o
execunix.c: In function ‘execwait’:
execunix.c:301:19: warning: implicit declaration of function ‘wait’ [-Wimplicit-function-declaration]
  301 |      while( ( w = wait( &status ) ) == -1 && errno == EINTR )
      |

Change-Id: I7c0e53db8d18e9e6cb317980cb9be9026b7fce20
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4400
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>

Diff

 jam/execunix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/jam/execunix.c b/jam/execunix.c
index 11f73ca..e19293b 100644
--- a/jam/execunix.c
+++ a/jam/execunix.c
@@ -56,6 +56,7 @@

# ifdef unix
# include <unistd.h>
# include <sys/wait.h>

# ifdef USE_POSIX_SPAWN
extern char **environ;