Skip to content

Commit

Permalink
Include <sys/socket.h> for declaration of struct sockaddr. This helps
Browse files Browse the repository at this point in the history
genassym compile when KERNEL is not defined.

Uniformize idempotency ifdef.
  • Loading branch information
Bruce Evans authored and Bruce Evans committed Nov 15, 1994
1 parent 67f5173 commit df708ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 7 additions & 4 deletions sys/net/if.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
* SUCH DAMAGE.
*
* @(#)if.h 8.1 (Berkeley) 6/10/93
* $Id: if.h,v 1.7 1994/10/01 19:44:38 wollman Exp $
* $Id: if.h,v 1.8 1994/11/14 14:06:05 bde Exp $
*/

#ifndef _NET_IF_H_
#define _NET_IF_H_
#define _NET_IF_H_

/*
* Structures defining a network interface, providing a packet
Expand All @@ -61,6 +61,9 @@
* routing and gateway routines maintaining information used to locate
* interfaces. These routines live in the files if.c and route.c
*/

#include <socket.h> /* for struct sockaddr */

#ifndef _TIME_ /* XXX fast fix for SNMP, going away soon */
#include <sys/time.h>
#endif
Expand Down Expand Up @@ -368,6 +371,6 @@ void loopattach __P((void));
int looutput __P((struct ifnet *,
struct mbuf *, struct sockaddr *, struct rtentry *));
void lortrequest __P((int, struct rtentry *, struct sockaddr *));
#endif
#endif /* KERNEL */

#endif
#endif /* !_NET_IF_H_ */
8 changes: 5 additions & 3 deletions sys/net/if_arp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
* SUCH DAMAGE.
*
* @(#)if_arp.h 8.1 (Berkeley) 6/10/93
* $Id: if_arp.h,v 1.2 1994/08/02 07:46:10 davidg Exp $
* $Id: if_arp.h,v 1.3 1994/08/21 05:11:41 paul Exp $
*/

#ifndef _NET_IF_ARP_H_
#define _NET_IF_ARP_H_
#define _NET_IF_ARP_H_

#include <socket.h> /* for struct sockaddr */

/*
* Address Resolution Protocol.
Expand Down Expand Up @@ -88,4 +90,4 @@ struct arpreq {
#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
#define ATF_USETRAILERS 0x10 /* has requested trailers */

#endif
#endif /* !_NET_IF_ARP_H_ */

0 comments on commit df708ff

Please sign in to comment.