catimg icon indicating copy to clipboard operation
catimg copied to clipboard

Build with -std=gnu99 instead of -std=c99

Open fweimer-rh opened this issue 3 years ago • 3 comments

The latter activates strict POSIX mode with glibc, which disables the declaration of usleep in <unistd.h>, leading to an implicit function declaration.

Related to:

  • https://fedoraproject.org/wiki/Changes/PortingToModernC
  • https://fedoraproject.org/wiki/Toolchain/PortingToModernC

fweimer-rh avatar Dec 22 '22 07:12 fweimer-rh

Thanks a lot for the links, I will try to review this and others during the holidays!

posva avatar Dec 22 '22 08:12 posva

that would create libc dependency :((((

Kreijstal avatar Dec 31 '23 18:12 Kreijstal