Skip to content

Commit 126b8e0

Browse files
committed
includes: review
1 parent 059fde5 commit 126b8e0

File tree

13 files changed

+30
-13
lines changed

13 files changed

+30
-13
lines changed

source/intercept/source/Convert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#pragma once
2121

2222
#include "Domain.h"
23-
#include "supervise.grpc.pb.h"
23+
#include "supervise.pb.h"
2424

2525
namespace domain {
2626

source/intercept/source/collect/Reporter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace ic {
3535
using Ptr = std::shared_ptr<Reporter>;
3636
static rust::Result<Reporter::Ptr> from(const flags::Arguments &flags);
3737

38-
void report(const rpc::Event &request);
38+
void report(const rpc::Event &event);
3939

4040
public:
4141
explicit Reporter(ic::EventsDatabase::Ptr database);

source/intercept/source/report/libexec/Buffer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#include <algorithm>
21-
2220
#include "report/libexec/Array.h"
2321
#include "report/libexec/Buffer.h"
2422

23+
#include <utility>
24+
2525
namespace el {
2626

2727
char const* Buffer::store(char const* const input) noexcept

source/intercept/source/report/libexec/Environment.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#include "config.h"
21-
2220
#include "report/libexec/Environment.h"
2321
#include "report/libexec/Array.h"
2422

source/intercept/source/report/libexec/Executor.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@
1919

2020
#pragma once
2121

22-
#include <spawn.h>
22+
#include "config.h"
2323

2424
#include "libresult/Result.h"
2525

26+
#ifdef HAVE_SPAWN_H
27+
#include <spawn.h>
28+
#endif
29+
#include <sys/types.h>
30+
2631
namespace el {
2732

2833
struct Linker;

source/intercept/source/report/libexec/Linker.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@
1919

2020
#pragma once
2121

22-
#include <spawn.h>
22+
#include "config.h"
2323

2424
#include "libresult/Result.h"
2525

26+
#ifdef HAVE_SPAWN_H
27+
#include <spawn.h>
28+
#endif
29+
2630
namespace el {
2731

2832
/**

source/intercept/source/report/libexec/Resolver.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include "config.h"
2021
#include "report/libexec/Resolver.h"
2122

2223
#include "report/libexec/Array.h"
@@ -25,7 +26,10 @@
2526

2627
#include <algorithm>
2728
#include <cerrno>
29+
#include <cstdlib>
30+
#ifdef HAVE_UNISTD_H
2831
#include <unistd.h>
32+
#endif
2933

3034
namespace {
3135

source/intercept/source/report/libexec/lib.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include "config.h"
21+
2022
#include <atomic>
2123
#include <cerrno>
2224
#include <climits>
@@ -28,6 +30,9 @@
2830
#include "report/libexec/Resolver.h"
2931
#include "report/libexec/Session.h"
3032

33+
#ifdef HAVE_SPAWN_H
34+
#include <spawn.h>
35+
#endif
3136
#if defined HAVE_NSGETENVIRON
3237
#include <crt_externs.h>
3338
#else

source/intercept/source/report/wrapper/Application.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "libmain/Application.h"
2424
#include "libmain/ApplicationLogConfig.h"
2525
#include "libflags/Flags.h"
26+
#include "libresult/Result.h"
2627

2728
namespace wr {
2829
using namespace domain;

source/intercept/source/report/wrapper/EventFactory.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
#include <chrono>
2727
#include <random>
28+
#include <cstdint>
29+
#include <string>
2830

2931
namespace {
3032

0 commit comments

Comments
 (0)