mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Finally, after a long wait, an electron port for FreeBSD lands in the portstree. A huge thanks to everyone contributed to this huge effort and to the maintainer that is willing to take the burden of the maintainership!
19 lines
682 B
C++
19 lines
682 B
C++
--- media/base/scopedfd_helper.h.orig 2019-03-15 06:25:46 UTC
|
|
+++ media/base/scopedfd_helper.h
|
|
@@ -14,14 +14,14 @@ namespace media {
|
|
// since the only current user is V4L2 we are limiting the scope to OS_LINUX so
|
|
// the binary size does not inflate on non-using systems. Feel free to adapt
|
|
// this and BUILD.gn as our needs evolve.
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
|
|
// Return a new vector containing duplicates of |fds|, or an empty vector in
|
|
// case of error.
|
|
MEDIA_EXPORT std::vector<base::ScopedFD> DuplicateFDs(
|
|
const std::vector<base::ScopedFD>& fds);
|
|
|
|
-#endif // OS_LINUX
|
|
+#endif // OS_LINUX || OS_BSD
|
|
|
|
} // namespace media
|
|
|