[libfko] use local strndup() if autoconf HAVE_STRNDUP not defined
authorMichael Rash <mbr@cipherdyne.org>
Tue, 11 Jun 2013 01:45:26 +0000 (21:45 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 11 Jun 2013 01:45:31 +0000 (21:45 -0400)
commit5c7f5f1b0ba7d5241edb944c3bb024d610839c8b
tree55f4f046ff53374d5d500fd61b637400d8ba2b4d
parent63ecfd54f280fe4888af3777bc05249e92561226
[libfko] use local strndup() if autoconf HAVE_STRNDUP not defined

Blair Zajac reported that strndup() is not available on some PPC systems, so
this commit switches to use the local lib/fko_util.c implementation similarly
to what is done for Windows systems.
lib/fko_util.c
lib/fko_util.h