mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 01:58:54 +01:00 
			
		
		
		
	Check for PR_SET_NAME
Bug 680148 claims that PR_SET_NAME may not be defined when using an old kernel. Deal with it.
This commit is contained in:
		@@ -1172,8 +1172,10 @@ void
 | 
			
		||||
g_system_thread_set_name (const gchar *name)
 | 
			
		||||
{
 | 
			
		||||
#ifdef HAVE_SYS_PRCTL_H
 | 
			
		||||
#ifdef PR_SET_NAME
 | 
			
		||||
  prctl (PR_SET_NAME, name, 0, 0, 0, 0);
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* {{{1 Epilogue */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user