https://github.com/gphoto/libgphoto2/issues/1145
--- libgphoto2_port/libgphoto2_port/compiletime-assert.h.orig	2022-01-02 02:13:55.000000000 +1100
+++ libgphoto2_port/libgphoto2_port/compiletime-assert.h	2022-06-08 17:40:17.000000000 +1000
@@ -35,6 +35,10 @@
 
 #include <assert.h>
 
+#ifndef static_assert
+#define static_assert _Static_assert
+#endif
+
 /** Compiletime assertion for use inside a function. */
 #define COMPILETIME_ASSERT(CONDITION) \
 	static_assert((CONDITION), #CONDITION)
