mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[spi-hdlc-adapter] fix undefined config macro warnings (#4458)
This commit is contained in:
committed by
Jonathan Hui
parent
73e30d1d7b
commit
0215527358
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user