Re: [PATCH v2] Fix compilation with iso C standard (c89, c99 and c11)

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

 



On 10/28/20 7:19 PM, Simon Zeni wrote:
> - References to the compiler extension `typeof` have been changed to
> `__typeof__` for portability. See [GCC's documentation][1] about
> `typeof`.
> 
> - Added the definition `_POSIX_C_SOURCE` in the source files that are
> using functions not defined in by the POSIX standard, fixing a few
> occurences of `sigset_t` not being defined.
> 
> - Added the definition `_DEFAULT_SOURCE` in `setup.c` and
> `syscall.c` for respectively the `madvise` function (`posix_madvise` exists,
> but there is not equivalent for`MADV_DONTFORK`), and `syscall`.
> 
> [1]: https://gcc.gnu.org/onlinedocs/gcc/Typeof.html

Thanks, applied.

-- 
Jens Axboe




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux