Skip to content

Commit

Permalink
Use gpatch on NetBSD and DragonFlyBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Apr 3, 2024
1 parent 0b0e3e9 commit 9262958
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/core/opamSystem.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1649,9 +1649,16 @@ let gpatch = lazy begin
in
let default_cmd, other_cmds =
match OpamStd.Sys.os () with
| OpamStd.Sys.OpenBSD
| OpamStd.Sys.FreeBSD -> ("gpatch", ["patch"])
| _ -> ("patch", ["gpatch"])
| DragonFly
| FreeBSD
| NetBSD
| OpenBSD -> ("gpatch", ["patch"])
| Cygwin
| Darwin
| Linux
| Unix
| Win32
| Other _ -> ("patch", ["gpatch"])
in
match search_gpatch (default_cmd :: other_cmds) with
| Some gpatch -> gpatch
Expand Down

0 comments on commit 9262958

Please sign in to comment.