X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Freplacements.h;h=0fe93b26d30dbf5e08d1ca83ea1d56a3ef30988d;hp=ceb22584ccaa7fed50887989bfbfc017842f143d;hb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;hpb=39650e2273bcae868d9509fe36515936ce25aacb diff --git a/src/helper/replacements.h b/src/helper/replacements.h index ceb22584cc..0fe93b26d3 100644 --- a/src/helper/replacements.h +++ b/src/helper/replacements.h @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ #ifndef REPLACEMENTS_H @@ -139,6 +139,13 @@ static inline unsigned usleep(unsigned int usecs) #include #include +/* Windows does not declare sockaddr_un */ +#define UNIX_PATH_LEN 108 +struct sockaddr_un { + uint16_t sun_family; + char sun_path[UNIX_PATH_LEN]; +}; + /* win32 systems do not support ETIMEDOUT */ #ifndef ETIMEDOUT @@ -221,8 +228,6 @@ static inline int socket_select(int max_fd, #ifndef HAVE_ELF_H -#include - typedef uint32_t Elf32_Addr; typedef uint16_t Elf32_Half; typedef uint32_t Elf32_Off;