Skip to content

Commit

Permalink
fix compile on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuiba committed Sep 13, 2023
1 parent 5043029 commit 66730fc
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
Empty file added third_party/include/arpa/inet.h
Empty file.
Empty file.
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions third_party/include/sys/uio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef SYS_UIO_H
#define SYS_UIO_H

#include <inttypes.h>
#include <unistd.h>

struct iovec
{
void *iov_base; /* Base address of a memory region for input or output */
size_t iov_len; /* The size of the memory pointed to by iov_base */
};

ssize_t readv(int fildes, const struct iovec *iov, int iovcnt);
ssize_t writev(int fildes, const struct iovec *iov, int iovcnt);

#endif /* SYS_UIO_H */
4 changes: 4 additions & 0 deletions thread/test/build-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
g++ -std=c++17 -I ../../include/ -I../../third_party/include -DThreadUT test.cpp x.cpp \
../thread-pool.cpp ../workerpool.cpp ../thread-key.cpp \
../../common/identity-pool.cpp ../../common/alog.cpp -lgtest -lgflags -O2

0 comments on commit 66730fc

Please sign in to comment.