diff --git a/src/inet_pton.c b/src/inet_pton.c
index 501df0ff2f..0410dfae50 100644
--- a/src/inet_pton.c
+++ b/src/inet_pton.c
@@ -45,6 +45,8 @@
 #define EAFNOSUPPORT    WSAEAFNOSUPPORT
 #endif
 
+#include <switch.h>
+
 /*
  * WARNING: Don't even consider trying to compile this on a system where
  * sizeof(int) < 4.  sizeof(int) > 4 is fine; all the world's not a VAX.