opnsense-ports/devel/ocaml-base/files/patch-src_discover_discover.ml
Franco Fichtner 5b6a3b2c6e */*: sync with upstream
Taken from: FreeBSD
2024-05-23 11:26:38 +02:00

14 lines
352 B
OCaml

--- src/discover/discover.ml.orig 2024-04-29 15:54:18 UTC
+++ src/discover/discover.ml
@@ -4,7 +4,11 @@ int main(int argc, char ** argv)
{|
int main(int argc, char ** argv)
{
+#if defined(__clang__) && !defined(__x86_64__) && !defined(__i386__)
+#error "-mpopcnt is not for this arch"
+#else
return __builtin_popcount(argc);
+#endif
}
|}
;;