forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-ml/ocaml-dns: Fix build with lwt3
Package-Manager: Portage-2.3.5, Repoman-2.3.2
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Index: ocaml-dns-0.20.0/lwt/dns_server_unix.ml | ||
=================================================================== | ||
--- ocaml-dns-0.20.0.orig/lwt/dns_server_unix.ml | ||
+++ ocaml-dns-0.20.0/lwt/dns_server_unix.ml | ||
@@ -31,10 +31,10 @@ let bind_fd ~address ~port = | ||
let err = sp "cannot resolve %s: %s" address (Printexc.to_string exn) in | ||
Lwt.fail (Failure err)) | ||
in | ||
- src >|= fun src -> | ||
+ src >>= fun src -> | ||
let fd = Lwt_unix.(socket PF_INET SOCK_DGRAM 0) in | ||
- let () = Lwt_unix.bind fd src in | ||
- (fd, src) | ||
+ Lwt_unix.bind fd src >>= fun () -> | ||
+ Lwt.return (fd, src) | ||
|
||
let eventual_process_of_zonefiles zonefiles = | ||
Lwt_list.map_s (fun zonefile -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters