Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Mar 2020 09:17:51 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r358948 - stable/11/lib/libusb
Message-ID:  <202003130917.02D9HpO2028377@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Mar 13 09:17:51 2020
New Revision: 358948
URL: https://svnweb.freebsd.org/changeset/base/358948

Log:
  MFC r358841:
  Fix for building libusb under Linux.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/lib/libusb/libusb_global_linux.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libusb/libusb_global_linux.h
==============================================================================
--- stable/11/lib/libusb/libusb_global_linux.h	Fri Mar 13 09:17:04 2020	(r358947)
+++ stable/11/lib/libusb/libusb_global_linux.h	Fri Mar 13 09:17:51 2020	(r358948)
@@ -75,4 +75,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?202003130917.02D9HpO2028377>