Index: uspace/srv/net/il/ip/ip.c
===================================================================
--- uspace/srv/net/il/ip/ip.c	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/srv/net/il/ip/ip.c	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -46,4 +46,6 @@
 #include <sys/types.h>
 
+#include <net/socket_codes.h>
+
 #include <net_messages.h>
 #include <net_modules.h>
@@ -64,5 +66,4 @@
 #include <nil_interface.h>
 #include <tl_interface.h>
-#include <socket_codes.h>
 #include <adt/measured_strings.h>
 #include <adt/module_map.h>
Index: uspace/srv/net/tl/icmp/icmp.c
===================================================================
--- uspace/srv/net/tl/icmp/icmp.c	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/srv/net/tl/icmp/icmp.c	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -49,4 +49,6 @@
 #include <err.h>
 
+#include <net/socket_codes.h>
+
 #include <net_messages.h>
 #include <net_modules.h>
@@ -66,5 +68,4 @@
 #include <ip_protocols.h>
 #include <net_interface.h>
-#include <socket_codes.h>
 #include <tl_messages.h>
 #include <tl_interface.h>
Index: uspace/srv/net/tl/tcp/tcp.c
===================================================================
--- uspace/srv/net/tl/tcp/tcp.c	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/srv/net/tl/tcp/tcp.c	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -48,4 +48,6 @@
 #include <ipc/services.h>
 
+#include <net/socket_codes.h>
+
 #include <net_messages.h>
 #include <net_modules.h>
@@ -63,5 +65,4 @@
 #include <icmp_interface.h>
 #include <net_interface.h>
-#include <socket_codes.h>
 #include <tcp_codes.h>
 #include <socket_core.h>
Index: uspace/srv/net/tl/udp/udp.c
===================================================================
--- uspace/srv/net/tl/udp/udp.c	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/srv/net/tl/udp/udp.c	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -44,4 +44,6 @@
 #include <errno.h>
 #include <err.h>
+
+#include <net/socket_codes.h>
 
 #include <net_messages.h>
@@ -60,5 +62,4 @@
 #include <icmp_interface.h>
 #include <net_interface.h>
-#include <socket_codes.h>
 #include <socket_core.h>
 #include <socket_messages.h>
