summaryrefslogtreecommitdiff
path: root/libc/src/sys/socket/linux/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/sys/socket/linux/socket.cpp')
-rw-r--r--libc/src/sys/socket/linux/socket.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/sys/socket/linux/socket.cpp b/libc/src/sys/socket/linux/socket.cpp
index 90a7dc632e26..3e6df4d487a5 100644
--- a/libc/src/sys/socket/linux/socket.cpp
+++ b/libc/src/sys/socket/linux/socket.cpp
@@ -11,12 +11,13 @@
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "src/errno/libc_errno.h"
#include <linux/net.h> // For SYS_SOCKET socketcall number.
#include <sys/syscall.h> // For syscall numbers.
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, socket, (int domain, int type, int protocol)) {
#ifdef SYS_socket
@@ -38,4 +39,4 @@ LLVM_LIBC_FUNCTION(int, socket, (int domain, int type, int protocol)) {
return ret;
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL