From 16f7030b81b48d9d72453739ea7d6131d5489480 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Fri, 14 Mar 2025 12:57:10 +0300
Subject: [PATCH] Attempt at fixing NetBSD screencapture (no shm on 10.1)

---
 cinelerra-5.1/guicast/bccapture.C | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cinelerra-5.1/guicast/bccapture.C b/cinelerra-5.1/guicast/bccapture.C
index d8a55590..317f96ae 100644
--- a/cinelerra-5.1/guicast/bccapture.C
+++ b/cinelerra-5.1/guicast/bccapture.C
@@ -86,7 +86,9 @@ int BC_Capture::init_window(const char *display_path)
 
 // test shared memory
 // This doesn't ensure the X Server is on the local host
+#ifndef __NetBSD__
 	if( use_shm && !XShmQueryExtension(display) )
+#endif
 		use_shm = 0;
 	return 0;
 }
-- 
2.47.1

