Skip to content

Commit

Permalink
Fix build on BSD
Browse files Browse the repository at this point in the history
Removed the line `SHELL:=/usr/bin/env bash'. Most BSDs don't ship bash in the
base system by default and the build doesn't need it anyway.

Also added some more version statements to define useXDG for the other BSDs.
  • Loading branch information
jtbx authored and WebFreak001 committed Dec 26, 2023
1 parent 8612841 commit 01e90ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ else ifneq (,$(findstring gdc, $(DC)))
WRITE_TO_TARGET_NAME = -o $@
endif

SHELL:=/usr/bin/env bash

GITHASH = bin/githash.txt


Expand Down
3 changes: 3 additions & 0 deletions src/dscanner/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ private enum CONFIG_FILE_NAME = "dscanner.ini";
version (linux) version = useXDG;
version (BSD) version = useXDG;
version (FreeBSD) version = useXDG;
version (OpenBSD) version = useXDG;
version (NetBSD) version = useXDG;
version (DragonflyBSD) version = useXDG;
version (OSX) version = useXDG;

/**
Expand Down

0 comments on commit 01e90ec

Please sign in to comment.