summary refs log tree commit diff
path: root/sysdeps/generic/bits/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/bits/socket.h')
-rw-r--r--sysdeps/generic/bits/socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/generic/bits/socket.h b/sysdeps/generic/bits/socket.h
index 7828d01bb3..4f29d83d78 100644
--- a/sysdeps/generic/bits/socket.h
+++ b/sysdeps/generic/bits/socket.h
@@ -31,7 +31,10 @@
 #include <stddef.h>
 
 /* Type for length arguments in socket calls.  */
-typedef unsigned int socklen_t;
+#ifndef __socklen_t_defined
+typedef __socklen_t socklen_t;
+# define __socklen_t_defined
+#endif
 
 
 /* Types of sockets.  */