stage1: fix unused function error on freebsd and netbsd

closes #2012
closes #2013
master
Andrew Kelley 2019-02-27 08:39:51 -05:00
parent c59ce046a0
commit d093f51f16
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ static Error zig_libc_find_native_include_dir_posix(ZigLibCInstallation *self, b
}
return ErrorFileNotFound;
}
#if !defined(ZIG_OS_DARWIN)
#if !defined(ZIG_OS_DARWIN) && !defined(ZIG_OS_FREEBSD) && !defined(ZIG_OS_NETBSD)
static Error zig_libc_cc_print_file_name(const char *o_file, Buf *out, bool want_dirname, bool verbose) {
const char *cc_exe = getenv("CC");
cc_exe = (cc_exe == nullptr) ? "cc" : cc_exe;