SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Index: src/utils/net/geoip.ml
--- src/utils/net/geoip.ml.orig
+++ src/utils/net/geoip.ml
@@ -225,8 +225,9 @@ type geoip_database = {
}
let new_map file =
- Array1.map_file (Unix.descr_of_in_channel file)
- int8_unsigned c_layout false (-1)
+ Bigarray.array1_of_genarray @@
+ Unix.map_file (Unix.descr_of_in_channel file)
+ int8_unsigned c_layout false [|-1|]
let unpack filename =
let ext = String.lowercase (Filename2.extension filename) in