diff --git a/components/net/netdev/src/netdev_ipaddr.c b/components/net/netdev/src/netdev_ipaddr.c index 8d83937da9..a70a90bb75 100644 --- a/components/net/netdev/src/netdev_ipaddr.c +++ b/components/net/netdev/src/netdev_ipaddr.c @@ -564,7 +564,7 @@ netdev_inet_ntop(int af, const void *src, char *dst, int32_t size) } switch (af) { -#if NTEDEV_IPV4 +#if NETDEV_IPV4 case AF_INET: return netdev_ip4addr_ntoa_r((const ip4_addr_t *)src, dst, size_int); #endif