aboutsummaryrefslogtreecommitdiff
path: root/include/netinet
diff options
context:
space:
mode:
Diffstat (limited to 'include/netinet')
-rw-r--r--include/netinet/ether.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/netinet/ether.h b/include/netinet/ether.h
index c0b1e2b..fc3460d 100644
--- a/include/netinet/ether.h
+++ b/include/netinet/ether.h
@@ -1,7 +1,14 @@
#ifndef _NETINET_ETHER_H
#include <inet/netinet/ether.h>
-struct etherent;
+/* Because the `ethers' lookup does not fit so well in the scheme we
+ define a dummy struct here which helps us to use the available
+ functions. */
+struct etherent
+{
+ const char *e_name;
+ struct ether_addr e_addr;
+};
#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setetherent (void); \