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 */