Skip to content

Commit 996493e

Browse files
committed
build: resolve build failure on freebsd/clang
include/gromox/mapidefs.h:925:17: error: unknown type name 'time_t' 925 | freebusy_event(time_t, time_t, uint32_t, const char *, const char *, const char *, bool, bool, bool, bool, bool, bool); tests/utf8filter.cpp:11:57: error: use of undeclared identifier 'STDIN_FILENO' 11 | std::unique_ptr<char[], stdlib_delete> buf(HX_slurp_fd(STDIN_FILENO, &size)); exch/exmdb/db_engine.cpp:573:55: error: use of undeclared identifier 'S_IXUSR' 573 | int ret = gx_mkbasedir(path.c_str(), FMODE_PRIVATE | S_IXUSR | S_IXGRP); tools/eml2mbox.cpp:18:13: error: use of undeclared identifier 'time' 18 | auto now = time(nullptr);
1 parent a6e2212 commit 996493e

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

exch/exmdb/db_engine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <utility>
2828
#include <vector>
2929
#include <fmt/core.h>
30+
#include <sys/stat.h>
3031
#include <libHX/scope.hpp>
3132
#include <gromox/atomic.hpp>
3233
#include <gromox/clock.hpp>

include/gromox/mapidefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <compare>
44
#include <cstdint>
55
#include <cstring>
6+
#include <ctime>
67
#include <memory>
78
#include <optional>
89
#include <string>

tests/utf8filter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// SPDX-FileCopyrightText: 2025 grommunio GmbH
3+
// This file is part of Gromox.
14
#include <cstdlib>
25
#include <cstring>
36
#include <memory>
7+
#include <unistd.h>
48
#include <libHX/io.h>
59
#include <gromox/defs.h>
610
#include <gromox/util.hpp>

tools/eml2mbox.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <cstdio>
66
#include <cstdlib>
77
#include <cstring>
8+
#include <ctime>
89
#include <memory>
910
#include <libHX/io.h>
1011
#include <libHX/scope.hpp>

0 commit comments

Comments
 (0)