소스 검색

Add missing in_addr_t

Eric Andersen 24 년 전
부모
커밋
dd5db8b9f5
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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.