Browse Source

Add missing in_addr_t

Eric Andersen 24 years ago
parent
commit
dd5db8b9f5
1 changed files with 4 additions and 3 deletions
  1. 4 3
      include/netinet/in.h

+ 4 - 3
include/netinet/in.h

@@ -103,10 +103,11 @@ enum
 
 
 
 
 /* Internet address.  */
 /* Internet address.  */
+typedef uint32_t in_addr_t;
 struct in_addr
 struct in_addr
-  {
+{
-    uint32_t s_addr;
+    in_addr_t s_addr;
-  };
+};
 
 
 
 
 /* Definitions of the bits in an Internet address integer.
 /* Definitions of the bits in an Internet address integer.