diff options
| author | Daniel Sabogal <dsabogalcc@gmail.com> | 2016-09-16 13:34:24 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2016-09-16 17:59:54 -0400 | 
| commit | 3848a99f65952a77c03bbd905cae988f37f13ea6 (patch) | |
| tree | 60b0c30e1a68b3022085692479db0d47b622d530 | |
| parent | 78897b0dc00b7cd5c29af5e0b7eebf2396d8dce0 (diff) | |
| download | musl-3848a99f65952a77c03bbd905cae988f37f13ea6.tar.gz | |
fix ifru_data and ifcu_buf types in net/if.h
glibc, freebsd, and openbsd use character pointers (caddr_t) for
these fields. only linux uses void pointer for the ifru_data type.
| -rw-r--r-- | include/net/if.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/if.h b/include/net/if.h index 1a4059d6..2f2fcc10 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -89,7 +89,7 @@ struct ifreq {  		struct ifmap ifru_map;  		char ifru_slave[IFNAMSIZ];  		char ifru_newname[IFNAMSIZ]; -		void *ifru_data; +		char *ifru_data;  	} ifr_ifru;  }; @@ -116,7 +116,7 @@ struct ifreq {  struct ifconf {  	int ifc_len;		  	union { -		void *ifcu_buf; +		char *ifcu_buf;  		struct ifreq *ifcu_req;  	} ifc_ifcu;  };  | 
