mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-38960: DTrace build fix for FreeBSD. (GH-17451)
DTrace build fix for FreeBSD. - allowing passing an extra flag as it need to define the arch size. - casting some probe's arguments.
This commit is contained in:
		
							parent
							
								
									2cca8efe46
								
							
						
					
					
						commit
						aabdeb766b
					
				
					 6 changed files with 9 additions and 10 deletions
				
			
		|  | @ -1762,14 +1762,14 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name) | |||
|     } | ||||
| 
 | ||||
|     if (PyDTrace_IMPORT_FIND_LOAD_START_ENABLED()) | ||||
|         PyDTrace_IMPORT_FIND_LOAD_START(PyUnicode_AsUTF8(abs_name)); | ||||
|         PyDTrace_IMPORT_FIND_LOAD_START((char *)PyUnicode_AsUTF8(abs_name)); | ||||
| 
 | ||||
|     mod = _PyObject_CallMethodIdObjArgs(interp->importlib, | ||||
|                                         &PyId__find_and_load, abs_name, | ||||
|                                         interp->import_func, NULL); | ||||
| 
 | ||||
|     if (PyDTrace_IMPORT_FIND_LOAD_DONE_ENABLED()) | ||||
|         PyDTrace_IMPORT_FIND_LOAD_DONE(PyUnicode_AsUTF8(abs_name), | ||||
|         PyDTrace_IMPORT_FIND_LOAD_DONE((char *)PyUnicode_AsUTF8(abs_name), | ||||
|                                        mod != NULL); | ||||
| 
 | ||||
|     if (import_time) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Carlier
						David Carlier