Skip to content

Commit

Permalink
[TCP/Buffer] Add missing header
Browse files Browse the repository at this point in the history
Differential Revision: D66674497

Pull Request resolved: #397
  • Loading branch information
Aidyn-A authored Dec 3, 2024
1 parent accd654 commit dc507d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gloo/transport/tcp/buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "gloo/transport/tcp/buffer.h"

#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>

#include <iostream>
Expand Down Expand Up @@ -126,7 +127,7 @@ void Buffer::send(size_t offset, size_t length, size_t roffset) {
GLOO_ENFORCE_LE(offset + length, size_);

if (debug_) {
std::cout << "[" << getpid() << ": " << syscall(__NR_gettid) << "] ";
std::cout << "[" << getpid() << ": " << syscall(SYS_gettid) << "] ";
std::cout << "send " << length << " bytes";
std::cout << " to " << pair_->peer().str();
std::cout << std::endl;
Expand Down

0 comments on commit dc507d1

Please sign in to comment.