Skip to content

Commit

Permalink
include/uapi/linux/if_pppol2tp.h: include linux/in.h and linux/in6.h
Browse files Browse the repository at this point in the history
Fixes userspace compilation errors like:

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mikko Rapeli authored and David S. Miller committed Aug 22, 2016
1 parent 1fe8e0f commit 05ee5de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/uapi/linux/if_pppol2tp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#define _UAPI__LINUX_IF_PPPOL2TP_H

#include <linux/types.h>

#include <linux/in.h>
#include <linux/in6.h>

/* Structure used to connect() the socket to a particular tunnel UDP
* socket over IPv4.
Expand Down

0 comments on commit 05ee5de

Please sign in to comment.