Skip to content

Commit

Permalink
Add _BSD_SOURCE flag to fix eio_posix on OpenBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
prgbln committed Apr 4, 2024
1 parent b128edc commit b8a99fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib_eio_posix/include/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let optional_flags = [

let () =
C.main ~name:"discover" (fun c ->
let c_flags = ["-D_LARGEFILE64_SOURCE"; "-D_XOPEN_SOURCE=700"; "-D_DARWIN_C_SOURCE"; "-D_GNU_SOURCE"] in
let c_flags = ["-D_LARGEFILE64_SOURCE"; "-D_XOPEN_SOURCE=700"; "-D_DARWIN_C_SOURCE"; "-D_GNU_SOURCE"; "-D_BSD_SOURCE"] in
let includes = ["sys/types.h"; "sys/stat.h"; "fcntl.h"] in
let extra_flags, missing_defs =
C.C_define.import c ~c_flags ~includes
Expand Down

0 comments on commit b8a99fa

Please sign in to comment.