]> git.proxmox.com Git - mirror_ovs.git/commit
dpctl: Fix broken Windows build due to missing strndup.
authorIlya Maximets <i.maximets@ovn.org>
Wed, 6 Jan 2021 15:29:26 +0000 (16:29 +0100)
committerIlya Maximets <i.maximets@ovn.org>
Wed, 6 Jan 2021 18:07:08 +0000 (19:07 +0100)
commit98b1d633c4125e395c08d3257b7352f3172d8c8f
tree95fe798a369ade87a56d7b774f9876d5a606c786
parentfe5ff26a49f61982a785fe8bf5739e739bf1bc00
dpctl: Fix broken Windows build due to missing strndup.

AppVeyor reports:

  lib/dpctl.c(1433): error C4013: 'strndup' undefined;
                                  assuming extern returning int
  make[2]: *** [lib/dpctl.lo] Error 1

Replacing missing 'strndup' with a portable pair of functions.

Fixes: bf8812cd7e20 ("dpctl: Add add/mod/del-flows command.")
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
lib/dpctl.c