BUILD: cfgparse: always defined _GNU_SOURCE for sched.h and crypt.h
_GNU_SOURCE used to be defined only when USE_LIBCRYPT was set. It's also
needed for sched_setaffinity() to be exported. As a side effect, when
USE_LIBCRYPT is not set, a warning is emitted, as Ilya found and reported
in issue #1815. Let's just define _GNU_SOURCE regardless of USE_LIBCRYPT,
and also explicitly add sched.h, as right now it appears to be inherited
from one of the other includes.
This should be backported to 2.4.
(cherry picked from commit 2e64472d16b00389134ca38b6c81efe5d7be469a)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 11be7cfaf5f0d7dc179fe5c874b19c9032e26341)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit ae30a9692f7e83d863d64b4c49d09a9c6c3edbe2)
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed