Deprecated _BSD_SOURCE
When compiled on RHEL7 or Fedora 27, genreport generates warning
CC genreport.o
In file included from /usr/include/bits/libc-header-start.h:33:0,
from /usr/include/stdio.h:27,
from genreport.c:17:
/usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
CCLD genreport
Proposed fix is to add _DEFAULT_SOURCE define as well before includes. 0001-Fix-deprecated-_BSD_SOURCE-warning.patch