termistor
termistor copied to clipboard
fix: Replace SIGUNUSED with SIGSYS and use _GNU_SOURCE
The SIGUNUSED define was removed from glibc version 2.26 in August 2017. So Termistor cannot be built on GNU/Linux distributions that use glibc>=2.26, such as Fedora>=27 and Ubuntu>=17.10.
From the signal(7) man page:
SIGUNUSED - Core Synonymous with SIGSYS
After changing SIGUNSED to SIGSYS, there are other problems raise while building the code:
-
grantpt,unlockptandptsnamefunctions, need_XOPEN_SOURCE >= 500feature test macro. -
posix_openptfunction needs_XOPEN_SOURCE >= 600feature test macro. -
pipe2function needs_GNU_SOURCEfeature test macro.
Since _GNU_SOURCE implies nearly all feature test macros, adding _GNU_SOURCE is sufficient.
Anyway, apparently this repo hasn't been updated in several years. I didn't realize this when I submitted this patch and the other one I submitted.