--- gdbsupport/common-defs.h.orig 2020-02-08 04:50:14.000000000 -0800 +++ gdbsupport/common-defs.h 2020-02-27 10:06:21.899297000 -0800 @@ -55,9 +55,15 @@ Must do this before including any system header, since other system headers may include stdint.h/inttypes.h. */ +#ifndef __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS 1 +#endif +#ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 +#endif +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS 1 +#endif /* Some distros enable _FORTIFY_SOURCE by default, which on occasion has caused build failures with -Wunused-result when a patch is