Hi all,
I just made my first commit to the repository and discovered that the
openocd-svn mailing list requires some adjusting to allow my posts.
Since that commit message may not be delivered soon (or at all), the
attached patch shows the changes that were committed as r1559.
Cheers,
Zach
Index: configure.in
===================================================================
--- configure.in (revision 1558)
+++ configure.in (revision 1559)
@@ -9,6 +9,7 @@
AC_CHECK_HEADERS(jtag_minidriver.h)
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(sys/time.h)
+AC_CHECK_HEADERS(sys/select.h)
AC_CHECK_HEADERS(elf.h)
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(stdbool.h)
Index: src/helper/replacements.h
===================================================================
--- src/helper/replacements.h (revision 1558)
+++ src/helper/replacements.h (revision 1559)
@@ -35,9 +35,16 @@
#if BUILD_ECOSBOARD
#include <pkgconf/system.h>
#include <stdlib.h>
-#include <sys/select.h>
#endif
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h> /* select, FD_SET and friends (POSIX.1-2001) */
+#endif
+
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h> /* FD_SET and friends (pre-POSIX.1-2001) */
+#endif
+
/* include necessary headers for socket functionality */
#ifdef _WIN32
#include <winsock2.h>
Index: src/helper/jim-eventloop.c
===================================================================
--- src/helper/jim-eventloop.c (revision 1558)
+++ src/helper/jim-eventloop.c (revision 1559)
@@ -62,6 +62,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
+#include <stdio.h>
#include <errno.h>
#include "replacements.h"
Index: src/jtag/jtag.c
===================================================================
--- src/jtag/jtag.c (revision 1558)
+++ src/jtag/jtag.c (revision 1559)
@@ -35,9 +35,12 @@
#include "command.h"
#include "log.h"
-#include "stdlib.h"
-#include "string.h"
+#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
/* note that this is not marked as static as it must be available from outside jtag.c for those
that implement the jtag_xxx() minidriver layer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development