|
|
1.1 root 1: check_include_files(sys/filio.h HAVE_SYS_FILIO_H)
2: if(HAVE_SYS_FILIO_H)
3: add_definitions(-DHAVE_SYS_FILIO_H)
4: endif(HAVE_SYS_FILIO_H)
5:
6: check_include_files(sys/ioctl.h HAVE_SYS_IOCTL_H)
7: if(HAVE_SYS_IOCTL_H)
8: add_definitions(-DHAVE_SYS_IOCTL_H)
9: endif(HAVE_SYS_IOCTL_H)
10:
11: check_include_files(unistd.h HAVE_UNISTD_H)
12: if(HAVE_UNISTD_H)
13: add_definitions(-DHAVE_UNISTD_H)
14: endif(HAVE_UNISTD_H)
15:
16: add_definitions(-DHAVE_STRERROR)
17:
1.1.1.2 ! root 18: # Supress some warnings for SLIRP
! 19: if(CMAKE_COMPILER_IS_GNUCC)
! 20: set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-sign-compare -Wno-strict-overflow")
! 21: endif(CMAKE_COMPILER_IS_GNUCC)
! 22:
1.1 root 23: add_library(Slirp
24: bootp.c cksum.c if.c ip_icmp.c ip_input.c ip_output.c
25: mbuf.c misc.c sbuf.c slirp.c slirpdebug.c socket.c
26: tcp_input.c tcp_output.c tcp_subr.c tcp_timer.c tftp.c udp.c)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.