run-command.h: include thread-utils.h instead of pthread.h
run-command.c may use threads for its async support. But instead of including pthread.h directly, let's include thread-utils.h. run-command.c probably never needs the dummy bits in thread-utils.h when NO_PTHREADS is defined. But this makes sure we have consistent HAVE_THREADS behavior everywhere. From now on outside compat/, thread-utils.h is the only place that includes pthread.h Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		 Nguyễn Thái Ngọc Duy
					Nguyễn Thái Ngọc Duy
				
			
				
					committed by
					
						 Junio C Hamano
						Junio C Hamano
					
				
			
			
				
	
			
			
			 Junio C Hamano
						Junio C Hamano
					
				
			
						parent
						
							0ec79358d0
						
					
				
				
					commit
					10bc232d0f
				
			| @ -1,9 +1,7 @@ | ||||
| #ifndef RUN_COMMAND_H | ||||
| #define RUN_COMMAND_H | ||||
|  | ||||
| #ifndef NO_PTHREADS | ||||
| #include <pthread.h> | ||||
| #endif | ||||
| #include "thread-utils.h" | ||||
|  | ||||
| #include "argv-array.h" | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user