Skip to content

Commit

Permalink
Add missing includes causing compilation error with Clang 18.1.8 (osq…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsmedstad authored Sep 2, 2024
1 parent 0514c74 commit fd1e088
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions osquery/core/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#pragma once

#include <cstdint>
#include <string>

#include <osquery/utils/macros/macros.h>
Expand Down
1 change: 1 addition & 0 deletions osquery/core/shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <osquery/logger/data_logger.h>

#include <atomic>
#include <condition_variable>
#include <mutex>
#include <string>

Expand Down
2 changes: 2 additions & 0 deletions osquery/core/sql/query_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include "query_data.h"

#include <algorithm>

namespace rj = rapidjson;

namespace osquery {
Expand Down
1 change: 1 addition & 0 deletions osquery/core/sql/scheduled_query.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#pragma once

#include <cstdint>
#include <map>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions osquery/core/tests/process_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#endif

#include <boost/format.hpp>
#include <fstream>

#include <gtest/gtest.h>

Expand Down
1 change: 1 addition & 0 deletions osquery/core/watcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <chrono>
#include <cstring>
#include <iomanip>
#include <thread>

#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions osquery/logger/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <algorithm>
#include <future>
#include <iomanip>
#include <optional>
#include <queue>
#include <thread>
Expand Down
1 change: 1 addition & 0 deletions osquery/remote/uri.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#pragma once

#include <cstdint>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions osquery/tables/system/posix/openssl_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <array>
#include <ctime>
#include <iomanip>
#include <memory>
#include <sstream>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions osquery/tables/system/tests/system_tables_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* SPDX-License-Identifier: (Apache-2.0 OR GPL-2.0-only)
*/

#include <fstream>
#include <future>
#include <gflags/gflags.h>
#include <gtest/gtest.h>
Expand Down
1 change: 1 addition & 0 deletions osquery/utils/pidfile/tests/pidfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <cstdlib>
#include <fstream>
#include <string>

#include <gtest/gtest.h>
Expand Down
1 change: 1 addition & 0 deletions osquery/utils/system/posix/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <osquery/utils/system/time.h>

#include <cstdint>
#include <string.h>

namespace osquery {
Expand Down
1 change: 1 addition & 0 deletions osquery/utils/system/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#pragma once

#include <cstdint>
#include <ctime>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions osquery/utils/tests/scope_guard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <chrono>
#include <fstream>
#include <string>
#include <thread>

Expand Down
1 change: 1 addition & 0 deletions tests/integration/tables/process_open_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <boost/filesystem.hpp>

#include <fstream>
#include <unistd.h>

namespace osquery {
Expand Down

0 comments on commit fd1e088

Please sign in to comment.