diff mbox

[v05,26/72] include/uapi/linux/if_pppox.h: include linux/in.h and linux/in6.h

Message ID 1471890809-4383-27-git-send-email-mikko.rapeli@iki.fi
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Mikko Rapeli Aug. 22, 2016, 6:32 p.m. UTC
Fixes userspace compilation errors:

error: field ‘addr’ has incomplete type
 struct sockaddr_in addr; /* IP address and port to send to */

error: field ‘addr’ has incomplete type
 struct sockaddr_in6 addr; /* IP address and port to send to */

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
---
 include/uapi/linux/if_pppox.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

David Miller Aug. 22, 2016, 11:31 p.m. UTC | #1
From: Mikko Rapeli <mikko.rapeli@iki.fi>

Date: Mon, 22 Aug 2016 20:32:43 +0200

> Fixes userspace compilation errors:

> 

> error: field ‘addr’ has incomplete type

>  struct sockaddr_in addr; /* IP address and port to send to */

> 

> error: field ‘addr’ has incomplete type

>  struct sockaddr_in6 addr; /* IP address and port to send to */

> 

> Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>


Applied.
diff mbox

Patch

diff --git a/include/uapi/linux/if_pppox.h b/include/uapi/linux/if_pppox.h
index 473c3c4..d37bbb1 100644
--- a/include/uapi/linux/if_pppox.h
+++ b/include/uapi/linux/if_pppox.h
@@ -24,6 +24,8 @@ 
 #include <linux/if.h>
 #include <linux/if_ether.h>
 #include <linux/if_pppol2tp.h>
+#include <linux/in.h>
+#include <linux/in6.h>
 
 /* For user-space programs to pick up these definitions
  * which they wouldn't get otherwise without defining __KERNEL__