Procházet zdrojové kódy

Add missing in_addr_t

Eric Andersen před 23 roky
rodič
revize
dd5db8b9f5
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  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.