build: fix clang-16 build 00/39500/3
authorDamjan Marion <damarion@cisco.com>
Wed, 6 Sep 2023 19:18:18 +0000 (21:18 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 13 Sep 2023 13:41:36 +0000 (13:41 +0000)
Change-Id: I882bef6f45fd276587fb93944ff4e21dc57dbca2
Type: fix
Fixes: 1c82cd4
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/interface_api.c

index 01f2fd0..9f1d43a 100644 (file)
@@ -17,6 +17,9 @@
  *------------------------------------------------------------------
  */
 
+#define _GNU_SOURCE
+#include <string.h>
+
 #include <vnet/vnet.h>
 #include <vlibmemory/api.h>
 
@@ -384,7 +387,6 @@ vl_api_sw_interface_dump_t_handler (vl_api_sw_interface_dump_t * mp)
       vec_add1 (filter, 0);    /* Ensure it's a C string for strcasecmp() */
     }
 
-  char *strcasestr (char *, char *);   /* lnx hdr file botch */
   /* *INDENT-OFF* */
   pool_foreach (swif, im->sw_interfaces)
    {