Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2020 15:59:20 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358841 - head/lib/libusb
Message-ID:  <202003101559.02AFxKPD068514@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Mar 10 15:59:20 2020
New Revision: 358841
URL: https://svnweb.freebsd.org/changeset/base/358841

Log:
  Fix for building libusb under Linux.
  
  MFC after:	3 days
  Sponsored by:	Mellanox Technologies

Modified:
  head/lib/libusb/libusb_global_linux.h

Modified: head/lib/libusb/libusb_global_linux.h
==============================================================================
--- head/lib/libusb/libusb_global_linux.h	Tue Mar 10 15:57:41 2020	(r358840)
+++ head/lib/libusb/libusb_global_linux.h	Tue Mar 10 15:59:20 2020	(r358841)
@@ -77,4 +77,11 @@
 } while (0)
 #endif
 
+#ifndef TAILQ_FOREACH_SAFE
+#define	TAILQ_FOREACH_SAFE(var, head, field, tvar)			\
+	for ((var) = TAILQ_FIRST((head));				\
+	    (var) && ((tvar) = TAILQ_NEXT((var), field), 1);		\
+	    (var) = (tvar))
+#endif
+
 #endif					/* _LIBUSB_GLOBAL_LINUX_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003101559.02AFxKPD068514>