add xorg-x11-server-libxf86config-dont-write-empty-sections.patch
This commit is contained in:
		
							parent
							
								
									4072bdd271
								
							
						
					
					
						commit
						bb63c20c9f
					
				| @ -0,0 +1,29 @@ | ||||
| --- hw/xfree86/parser/write.c.orig	2006-07-12 11:15:49.000000000 -0400
 | ||||
| +++ hw/xfree86/parser/write.c	2006-07-12 11:19:59.000000000 -0400
 | ||||
| @@ -108,13 +108,19 @@
 | ||||
|   | ||||
|  	xf86printLayoutSection (cf, cptr->conf_layout_lst); | ||||
|   | ||||
| -	fprintf (cf, "Section \"Files\"\n");
 | ||||
| -	xf86printFileSection (cf, cptr->conf_files);
 | ||||
| -	fprintf (cf, "EndSection\n\n");
 | ||||
| -
 | ||||
| -	fprintf (cf, "Section \"Module\"\n");
 | ||||
| -	xf86printModuleSection (cf, cptr->conf_modules);
 | ||||
| -	fprintf (cf, "EndSection\n\n");
 | ||||
| +	if (cptr->conf_files != NULL)
 | ||||
| +	{
 | ||||
| +		fprintf (cf, "Section \"Files\"\n");
 | ||||
| +		xf86printFileSection (cf, cptr->conf_files);
 | ||||
| +		fprintf (cf, "EndSection\n\n");
 | ||||
| +	}
 | ||||
| +
 | ||||
| +	if (cptr->conf_modules != NULL)
 | ||||
| +	{
 | ||||
| +		fprintf (cf, "Section \"Module\"\n");
 | ||||
| +		xf86printModuleSection (cf, cptr->conf_modules);
 | ||||
| +		fprintf (cf, "EndSection\n\n");
 | ||||
| +	}
 | ||||
|   | ||||
|  	xf86printVendorSection (cf, cptr->conf_vendor_lst); | ||||
|   | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user