Closed karlp closed 4 months ago
Hi @karlp, thanks for reporting the issue. I have already reported the issue to development team, feedback maybe delayed.
Hi @karlp , this has been resolved by: 197fbf8122ca960ad7517056ec938ea5871c13e5. please try, thanks.
Personally, I think that's a horrible solution. caddr_t is not a posix sys/types.h type, (see https://pubs.opengroup.org/onlinepubs/000095399/basedefs/sys/types.h.html) you've just continued using this wildly old caddr_t instead of fixing the source. It depends on __USE_MISC, from _BSD_SOURCE or _SVID_SOURCE.
Why don't you just fix this single use of this old style type?
Still, thanks for at least looking at it I guess...
Thanks @karlp , what is your suggest fixing? originally I didn't intend to change the prototype of this function.
Hi @karlp , I checked in the new gcc libc, the prototype is already changed to void *_sbrk (ptrdiff_t incr)
, so I will change accordingly, and also, seems the _sbrk is already updated for the heap_limit comparasion issue, if so, then the _sbrk in sdk is not needed. I will evaluate and update.
Thanks.
Hi @karlp , the patch is ready in: e345b8b. thanks.
Describe the bug The type name 'caddr_t' is used in fsl_sbrk.c.
ARM gcc 12.x will not recognize this as a valid type. it's wildly deprecated, you should stop using this.
To Reproduce
Expected behavior compiles
Screenshots and console output