scanner: Add configure check for strndup
authorJoshua Watt <JPEWhacker@gmail.com>
Sat, 26 Oct 2019 02:03:23 +0000 (21:03 -0500)
committerJoshua Watt <JPEWhacker@gmail.com>
Tue, 5 Nov 2019 14:59:58 +0000 (08:59 -0600)
commit4a1f348c20157db7bd7c759fdeb23fbe8729c571
tree3a788043096ae2a98f10e10ad94fc76236be4632
parent8e0513410dd16a3f3b1d07745b613e5ae6141bd0
scanner: Add configure check for strndup

Some platforms may not have strndup() (e.g. MinGW), so provide a
equivalent implementation if it's not found.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
configure.ac
src/scanner.c