linux/bfd: cover #include <diagnostics.h> with __has_include, because it appeared in 2018 only
#include "linux/bfd.h"
#include <bfd.h>
+#if defined __has_include
+#if __has_include(<diagnostics.h>)
#include <diagnostics.h>
+#endif /* __has_include(<diagnostics.h>) */
+#endif /* defined __has_include */
#include <dis-asm.h>
#include <inttypes.h>
#include <pthread.h>
