'sys/ioctl.h',
'sys/mman.h',
'sys/param.h',
+ 'sys/random.h',
'sys/resource.h',
'sys/socket.h',
'sys/stat.h',
'explicit_bzero',
'explicit_memset',
'fchmod',
+ 'getentropy',
'gettimeofday',
'memset_s',
'mlockall',
'subnet.c',
]
+cc_flags_tinc = cc_flags
cc_flags_tincd = cc_flags
deps_common = []
if dep_curses.found()
cdata.set('HAVE_CURSES', 1)
deps_tinc += dep_curses
+ if static
+ cc_flags_tinc += '-DNCURSES_STATIC'
+ endif
endif
endif
if not dep_readline.found()
dep_readline = cc.find_library('readline', required: opt_readline, static: static)
endif
+ if not dep_readline.found()
+ dep_readline = cc.find_library('libedit', required: opt_readline, static: static)
+ endif
if dep_readline.found() and \
cc.has_header('readline/readline.h', dependencies: dep_readline) and \
cc.has_header('readline/history.h', dependencies: dep_readline)
sources: src_tinc,
dependencies: deps_tinc,
link_with: lib_common,
+ c_args: cc_flags_tinc,
implicit_include_directories: false,
include_directories: inc_conf,
build_by_default: false,