diff --git a/ares/m4/cares-functions.m4 b/ares/m4/cares-functions.m4
index aff65b8455ae2da645fcd6a24a62acb94e5ebce1..bf0e88f4279640a008c1891d13e4f4153b2fdc70 100644
--- a/ares/m4/cares-functions.m4
+++ b/ares/m4/cares-functions.m4
@@ -16,7 +16,7 @@
 #***************************************************************************
 
 # File version for 'aclocal' use. Keep it a single number.
-# serial 21
+# serial 22
 
 
 dnl CARES_INCLUDES_ARPA_INET
@@ -37,7 +37,7 @@ cares_includes_arpa_inet="\
 #  include <netinet/in.h>
 #endif
 #ifdef HAVE_ARPA_INET_H
-#  include <arpa_inet.h>
+#  include <arpa/inet.h>
 #endif
 /* includes end */"
   AC_CHECK_HEADERS(
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4
index b25f9b68666a326e356cf2bec50629309e5cf5af..02d3701cded0db272bbbe26cc230d7e60cf66bf0 100644
--- a/m4/curl-functions.m4
+++ b/m4/curl-functions.m4
@@ -22,7 +22,7 @@
 #***************************************************************************
 
 # File version for 'aclocal' use. Keep it a single number.
-# serial 38
+# serial 39
 
 
 dnl CURL_INCLUDES_ARPA_INET
@@ -43,7 +43,7 @@ curl_includes_arpa_inet="\
 #  include <netinet/in.h>
 #endif
 #ifdef HAVE_ARPA_INET_H
-#  include <arpa_inet.h>
+#  include <arpa/inet.h>
 #endif
 /* includes end */"
   AC_CHECK_HEADERS(