From 02155273587ac269686555e47de2729b0e80077e Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 8 Jan 2020 13:13:07 -0800 Subject: [PATCH] [spi-hdlc-adapter] fix undefined config macro warnings (#4458) --- tools/spi-hdlc-adapter/spi-hdlc-adapter.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/spi-hdlc-adapter/spi-hdlc-adapter.c b/tools/spi-hdlc-adapter/spi-hdlc-adapter.c index 11e7134e6..76650fcab 100644 --- a/tools/spi-hdlc-adapter/spi-hdlc-adapter.c +++ b/tools/spi-hdlc-adapter/spi-hdlc-adapter.c @@ -27,6 +27,10 @@ #define _GNU_SOURCE 1 +#ifndef HAVE_CONFIG_H +#define HAVE_CONFIG_H 0 +#endif + #if HAVE_CONFIG_H #include "config.h" #endif @@ -53,18 +57,34 @@ #include #include +#ifndef HAVE_EXECINFO_H +#define HAVE_EXECINFO_H 0 +#endif + #if HAVE_EXECINFO_H #include #endif +#ifndef HAVE_PTY_H +#define HAVE_PTY_H 0 +#endif + #if HAVE_PTY_H #include #endif +#ifndef HAVE_UTIL_H +#define HAVE_UTIL_H 0 +#endif + #if HAVE_UTIL_H #include #endif +#ifndef HAVE_OPENPTY +#define HAVE_OPENPTY 0 +#endif + /* ------------------------------------------------------------------------- */ /* MARK: Macros and Constants */