diff options
Diffstat (limited to 'host/lib/flashrom.c')
-rw-r--r-- | host/lib/flashrom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/flashrom.c b/host/lib/flashrom.c index b1647ae0..62ab1bc8 100644 --- a/host/lib/flashrom.c +++ b/host/lib/flashrom.c @@ -47,6 +47,10 @@ static vb2_error_t write_temp_file(const uint8_t *data, uint32_t data_size, char *path; mode_t umask_save; +#if defined(__FreeBSD__) +#define P_tmpdir "/tmp" +#endif + *path_out = NULL; path = strdup(P_tmpdir "/vb2_flashrom.XXXXXX"); |