diff options
author | Paul Smith <psmith@gnu.org> | 2011-11-15 21:12:53 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2011-11-15 21:12:53 +0000 |
commit | dc2a6ceb81730c25c0beec1f13994b9710767ee1 (patch) | |
tree | d8ffe41c5bb5af3a5544af0a8a0bdfc36eb2fd01 /w32 | |
parent | 4f47fbf953faae5d38bdc4e709aa8872e3914418 (diff) | |
download | gunmake-dc2a6ceb81730c25c0beec1f13994b9710767ee1.tar.gz |
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.
Diffstat (limited to 'w32')
-rw-r--r-- | w32/include/sub_proc.h | 2 | ||||
-rw-r--r-- | w32/subproc/sub_proc.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 |