From dc2a6ceb81730c25c0beec1f13994b9710767ee1 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 15 Nov 2011 21:12:53 +0000 Subject: Enable jobserver on W32 when using configure. Some W32 cleanups: see Savannah bug #34830 Forgot to modify the config.h.W32.template file for jobserver support. --- w32/include/sub_proc.h | 2 +- w32/subproc/sub_proc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'w32') diff --git a/w32/include/sub_proc.h b/w32/include/sub_proc.h index b61373d..389ddf5 100644 --- a/w32/include/sub_proc.h +++ b/w32/include/sub_proc.h @@ -58,7 +58,7 @@ EXTERN_DECL(int process_errcnt, (HANDLE proc)); EXTERN_DECL(void process_pipes, (HANDLE proc, int pipes[3])); /* jobserver routines */ -EXTERN_DECL(int open_jobserver_semaphore, (char* name)); +EXTERN_DECL(int open_jobserver_semaphore, (const char* name)); EXTERN_DECL(int create_jobserver_semaphore, (int tokens)); EXTERN_DECL(void free_jobserver_semaphore, (VOID_DECL)); EXTERN_DECL(int acquire_jobserver_semaphore, (VOID_DECL)); diff --git a/w32/subproc/sub_proc.c b/w32/subproc/sub_proc.c index 64185b3..b4dddbe 100644 --- a/w32/subproc/sub_proc.c +++ b/w32/subproc/sub_proc.c @@ -63,7 +63,7 @@ static char jobserver_semaphore_name[MAX_PATH + 1]; static HANDLE jobserver_semaphore = NULL; /* Open existing jobserver semaphore */ -int open_jobserver_semaphore(char* name) +int open_jobserver_semaphore(const char* name) { jobserver_semaphore = OpenSemaphore( SEMAPHORE_ALL_ACCESS, // Semaphore access setting -- cgit v1.2.3