Use __socklen_t to define socklen_t. Allow definition elsewhere.

This commit is contained in:
Ulrich Drepper 2000-04-02 08:01:25 +00:00
parent 9de792e3c0
commit 23a7de4bb4
2 changed files with 8 additions and 2 deletions

View File

@ -32,7 +32,10 @@
#include <sys/types.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. */
enum __socket_type

View File

@ -32,7 +32,10 @@
#include <sys/types.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. */
enum __socket_type