[spi-hdlc-adapter] fix undefined config macro warnings (#4458)

This commit is contained in:
Abtin Keshavarzian
2020-01-09 11:45:39 -08:00
committed by Jonathan Hui
parent 73e30d1d7b
commit 0215527358
+20
View File
@@ -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 <linux/ioctl.h>
#include <linux/spi/spidev.h>
#ifndef HAVE_EXECINFO_H
#define HAVE_EXECINFO_H 0
#endif
#if HAVE_EXECINFO_H
#include <execinfo.h>
#endif
#ifndef HAVE_PTY_H
#define HAVE_PTY_H 0
#endif
#if HAVE_PTY_H
#include <pty.h>
#endif
#ifndef HAVE_UTIL_H
#define HAVE_UTIL_H 0
#endif
#if HAVE_UTIL_H
#include <util.h>
#endif
#ifndef HAVE_OPENPTY
#define HAVE_OPENPTY 0
#endif
/* ------------------------------------------------------------------------- */
/* MARK: Macros and Constants */