Skip to content

Commit

Permalink
Merge pull request Tencent#35 from zagnix/master
Browse files Browse the repository at this point in the history
fix compile for centos
  • Loading branch information
leiffyli authored Jul 3, 2017
2 parents ca8fe05 + f579f9c commit fce9858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ set_target_properties(colib_shared PROPERTIES VERSION ${LIBCO_VERSION} SOVERSION
# Macro for add example target
macro(add_example_target EXAMPLE_TARGET)
add_executable("example_${EXAMPLE_TARGET}" "example_${EXAMPLE_TARGET}.cpp")
target_link_libraries("example_${EXAMPLE_TARGET}" colib_static)
target_link_libraries("example_${EXAMPLE_TARGET}" colib_static pthread dl)
endmacro(add_example_target)

add_example_target(closure)
Expand Down
1 change: 1 addition & 0 deletions example_echosvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include <sys/wait.h>

using namespace std;
struct task_t
Expand Down

0 comments on commit fce9858

Please sign in to comment.