LibC: Add non standard types/values used by ports
This commit is contained in:
parent
c1618e2b5d
commit
2ba25b4c28
|
@ -26,6 +26,7 @@ __BEGIN_DECLS
|
|||
#define IPV6_V6ONLY 7
|
||||
|
||||
#define INADDR_ANY 0
|
||||
#define INADDR_NONE 0xFFFFFFFF
|
||||
#define INADDR_BROADCAST 0xFFFFFFFF
|
||||
#define INADDR_LOOPBACK 0x7F000001
|
||||
|
||||
|
|
|
@ -185,6 +185,14 @@ __BEGIN_DECLS
|
|||
|
||||
#ifdef __need_all_types
|
||||
#include <stdint.h>
|
||||
|
||||
typedef short bits16_t;
|
||||
typedef unsigned short u_bits16_t;
|
||||
typedef int bits32_t;
|
||||
typedef unsigned int u_bits32_t;
|
||||
typedef char* bits64_t;
|
||||
typedef unsigned int u_int;
|
||||
typedef unsigned long u_long;
|
||||
#endif
|
||||
|
||||
#undef __need_all_types
|
||||
|
|
Loading…
Reference in New Issue