# HG changeset patch # User Landry Breuil # Date 1534989300 -10800 # Node ID 5ba529cbce594db3cafc89bee7a5ec218087e164 # Parent ed43442617b7168ec6a31acbabadac66ecb2ff0e Bug 1457092 - Define XP_*BSD for OpenBSD/NetBSD/FreeBSD. r=glandium diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure --- a/build/moz.configure/init.configure +++ b/build/moz.configure/init.configure @@ -962,16 +962,40 @@ def target_is_linux(target): if target.kernel == 'Linux': return True set_define('XP_LINUX', target_is_linux) @depends(target) +def target_is_openbsd(target): + if target.kernel == 'OpenBSD': + return True + + +set_define('XP_OPENBSD', target_is_openbsd) + +@depends(target) +def target_is_netbsd(target): + if target.kernel == 'NetBSD': + return True + + +set_define('XP_NETBSD', target_is_netbsd) + +@depends(target) +def target_is_freebsd(target): + if target.kernel == 'FreeBSD': + return True + + +set_define('XP_FREEBSD', target_is_freebsd) + +@depends(target) def target_is_solaris(target): if target.kernel == 'SunOS': return True set_define('XP_SOLARIS', target_is_solaris) # The application/project to build