Skip to content

Commit a1aeb98

Browse files
authored
Fix make build failure
When user run `make build` on this started code, it fails because the `sstream` header is missing, which is used in the source code.
1 parent 3ca43c3 commit a1aeb98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/linux_parser.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <dirent.h>
22
#include <unistd.h>
3+
#include <sstream>
34
#include <string>
45
#include <vector>
56

@@ -112,4 +113,4 @@ string LinuxParser::User(int pid[[maybe_unused]]) { return string(); }
112113

113114
// TODO: Read and return the uptime of a process
114115
// REMOVE: [[maybe_unused]] once you define the function
115-
long LinuxParser::UpTime(int pid[[maybe_unused]]) { return 0; }
116+
long LinuxParser::UpTime(int pid[[maybe_unused]]) { return 0; }

0 commit comments

Comments
 (0)