diff --git a/ports/unix/Makefile b/ports/unix/Makefile
index 1a1ea01f7987020e7c88bc68b1748850cd114572..b96391f69376409f17f4fcb58fc19c7530bbc1de 100644
--- a/ports/unix/Makefile
+++ b/ports/unix/Makefile
@@ -97,7 +97,7 @@ SRC_MOD += modtermios.c
 endif
 ifeq ($(MICROPY_PY_SOCKET),1)
 CFLAGS_MOD += -DMICROPY_PY_SOCKET=1
-SRC_MOD += modsocket.c
+SRC_MOD += modusocket.c
 endif
 ifeq ($(MICROPY_PY_THREAD),1)
 CFLAGS_MOD += -DMICROPY_PY_THREAD=1 -DMICROPY_PY_THREAD_GIL=0
diff --git a/ports/unix/modsocket.c b/ports/unix/modusocket.c
similarity index 100%
rename from ports/unix/modsocket.c
rename to ports/unix/modusocket.c