Explorar el Código

Add missing in_addr_t

Eric Andersen hace 23 años
padre
commit
dd5db8b9f5
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      include/netinet/in.h

+ 4 - 3
include/netinet/in.h

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