Silence warning about _DEFAULT_SOURCE for Linux/glibc
In >=glibc-2.20, the _BSD_SOURCE macro is deprecated in favor of _DEFAULT_SOURCE. This adds -D_DEFAULT_SOURCE to CPPFLAGS on Linux. Fixes #44
This commit is contained in:
		
				
					committed by
					
						 Doug Freed
						Doug Freed
					
				
			
			
				
	
			
			
			
						parent
						
							be497229b6
						
					
				
				
					commit
					de93587aff
				
			| @@ -4,7 +4,7 @@ | ||||
| SFX=		.Linux.in | ||||
| PKG_PREFIX?=	/usr | ||||
|  | ||||
| CPPFLAGS+=	-D_BSD_SOURCE -D_XOPEN_SOURCE=700 | ||||
| CPPFLAGS+=	-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 | ||||
| LIBDL=		-Wl,-Bdynamic -ldl | ||||
|  | ||||
| ifeq (${MKSELINUX},yes) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user