jpirko / libteam

team netdevice library
GNU Lesser General Public License v2.1
231 stars 59 forks source link

teamd: Include missing headers for strrchr and memcmp #68

Closed kraj closed 2 years ago

kraj commented 2 years ago

Compiler does not see the prototype for these functions otherwise and build fails e.g.

| ../../git/teamd/teamd_phys_port_check.c:52:10: error: call to undeclared library function 'strrchr' with type 'char (const char , int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | start = strrchr(link, '/'); | ^

Signed-off-by: Khem Raj raj.khem@gmail.com

jpirko commented 2 years ago

see SubmittingPatches