File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ if(NOT MEMCACHED_BINARY)
46
46
endif ()
47
47
48
48
add_executable (timeout timeout .c )
49
+ target_include_directories (timeout PRIVATE ${CMAKE_BINARY_DIR} )
49
50
50
51
file (GLOB_RECURSE TESTING_SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp )
51
52
set (TESTING_ROOT "${CMAKE_CURRENT_BINARY_DIR} " )
Original file line number Diff line number Diff line change
1
+ #include "mem_config.h"
1
2
#include <unistd.h>
2
3
#include <stdio.h>
3
4
#include <stdlib.h>
4
5
#include <memory.h>
5
- #include <arpa/inet.h>
6
- #include <sys/socket.h>
6
+ #if HAVE_ARPA_INET_H
7
+ # include <arpa/inet.h>
8
+ #endif
9
+ #if HAVE_SYS_SOCKET_H
10
+ # include <sys/socket.h>
11
+ #endif
12
+ #if HAVE_NETINET_IN_H
13
+ # include <netinet/in.h>
14
+ #endif
7
15
8
16
// $0 -u nobody -p <port>
9
17
int main (int argc , char * * argv ) {
You can’t perform that action at this time.
0 commit comments