1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2006 by Dominic Rath <Dominic.Rath@gmx.de> *
5 * Copyright (C) 2007-2008 by Øyvind Harboe <oyvind.harboe@zylin.com> *
6 * Copyright (C) 2008 by Spencer Oliver <spen@spen-soft.co.uk> *
7 * Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net> *
8 ***************************************************************************/
10 #ifndef OPENOCD_HELPER_SYSTEM_H
11 #define OPENOCD_HELPER_SYSTEM_H
13 /* +++ platform specific headers +++ */
17 #include <sys/types.h>
20 /* --- platform specific headers --- */
22 /* standard C library header files */
31 #ifdef HAVE_SYS_TIME_H
35 #ifdef HAVE_SYS_SOCKET_H
36 #include <sys/socket.h>
43 /* missing from eCos */
45 #define EFAULT 14 /* Bad address */
49 #ifdef HAVE_NETINET_IN_H
50 #include <netinet/in.h>
52 #ifdef HAVE_SYS_SELECT_H
53 #include <sys/select.h> /* select, FD_SET and friends (POSIX.1-2001) */
55 #ifdef HAVE_SYS_PARAM_H
56 #include <sys/param.h> /* for MIN/MAX macros */
70 #endif /* OPENOCD_HELPER_SYSTEM_H */