Re: [PATCH] cgcc: teach cgcc about GNU/kFreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 14, 2017 at 10:03:27PM +0200, Uwe Kleine-König wrote:
> ---
>  cgcc | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/cgcc b/cgcc
> index a8d7b4f217fe..0ab54f943578 100755
> --- a/cgcc
> +++ b/cgcc
> @@ -235,6 +235,9 @@ sub add_specs {
>      } elsif ($spec eq 'linux') {
>  	return &add_specs ('unix') .
>  	    ' -D__linux__=1 -D__linux=1 -Dlinux=linux';
> +    } elsif ($spec eq 'gnu/kfreebsd') {
> +	return &add_specs ('unix') .
> +	    ' -D__FreeBSD_kernel__=1'
>      } elsif ($spec eq 'openbsd') {
>  	return &add_specs ('unix') .
>  	    ' -D__OpenBSD__=1';

Acked-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux