]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
sys/socket.h: Fix typo of guard: CONFIG_LWIP_SOCKET
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 17 Feb 2020 12:22:57 +0000 (13:22 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 17 Feb 2020 15:29:58 +0000 (16:29 +0100)
Fixes a typo of the CONFIG_LWIP_SOCKET guard.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/sys/socket.h

index 8f6ecbc0b6349bec5e670830d439cedaf16c53d7..b89566020d53bc5cb2c5254146ac15b55cc211bb 100644 (file)
@@ -38,11 +38,11 @@ extern "C" {
 #endif
 
 #include <uk/config.h>
-#if CONFIG_LWIP_SOCKETS
+#if CONFIG_LWIP_SOCKET
 #if CONFIG_HAVE_LIBC
 #include <fcntl.h>
 #include <poll.h>
-#endif
+#endif /* CONFIG_HAVE_LIBC */
 #include <lwip/sockets.h>
 
 #ifndef SOCK_CLOEXEC
@@ -102,9 +102,10 @@ int sendto(int s, const void *dataptr, size_t size, int flags,
           const struct sockaddr *to, socklen_t tolen);
 int socketpair(int domain, int type, int protocol, int sv[2]);
 
+#endif /* CONFIG_LWIP_SOCKET */
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* CONFIG_LWIP_SOCKETS */
 #endif /* _UK_LWIP_SOCKET_H_ */