aboutsummaryrefslogtreecommitdiff
path: root/bits/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'bits/socket.h')
-rw-r--r--bits/socket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bits/socket.h b/bits/socket.h
index 7828d01..4f29d83 100644
--- a/bits/socket.h
+++ b/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. */