summaryrefslogtreecommitdiff
path: root/multimedia/lms/files/patch-src_libs_utils_impl_ChildProcess.cpp
blob: f273aee461d0ac2de89bc2ef85a2530773b0135a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/libs/utils/impl/ChildProcess.cpp.orig	2022-02-02 17:25:04 UTC
+++ src/libs/utils/impl/ChildProcess.cpp
@@ -68,6 +68,7 @@ ChildProcess::ChildProcess(boost::asio::io_context& io
 	if (res < 0)
 		throw SystemException {errno, "pipe2 failed!"};
 
+#if !defined(__FreeBSD__) // see https://github.com/epoupon/lms/issues/144
 	{
 #if defined(__linux__) && defined(F_SETPIPE_SZ)
 		// Just a hint here to prevent the writer from writing too many bytes ahead of the reader
@@ -79,6 +80,7 @@ ChildProcess::ChildProcess(boost::asio::io_context& io
 			throw SystemException {errno, "fcntl failed!"};
 #endif
 	}
+#endif
 
 	res = fork();
 	if (res == -1)