Marc,

don't have a Mac for testing.

On FreeBSD 12.1-RELEASE-p1 you need to include <sys/select.h> to
define FD_ISSET, FD_SET, FD_ZERO.
Also sys/select.h gets included by <sys/types.h>, but only if
__BSD_VISIBLE is defined.

On Linux/glibc you also need to include it for the same defines. Also
here included by <sys/types.h>, but only is __USE_MISC is defined.

I would not rely on them!

Looking in OpenOCD code, we have in src/helper/system.h
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h> /* select, FD_SET and friends (POSIX.1-2001) */
  #endif
and in configure.ac
  AC_CHECK_HEADERS([sys/select.h])
than automagically makes HAVE_SYS_SELECT_H
Maybe the same works for you too!

Antonio

On Sun, May 31, 2020 at 8:02 PM Marc Schink <[email protected]> wrote:
>
> Hi,
>
> can somebody check if this patch [1] is necessary to build libjaylink
> on OSX?
>
> I would like to integrate this fix (if necessary) in the upcoming 0.2.0
> release which will probably take place within the next couple of days.
>
> Best regards
> Marc
>
> [1]
> https://github.com/syntacore/libjaylink/commit/96ba465981211009fa8b37e2ed6788e73179288c
>
>
>
> _______________________________________________
> OpenOCD-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openocd-devel


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to