aboutsummaryrefslogtreecommitdiff
path: root/inet/netgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'inet/netgroup.h')
-rw-r--r--inet/netgroup.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/inet/netgroup.h b/inet/netgroup.h
index e8ea51e957..746cd9eaad 100644
--- a/inet/netgroup.h
+++ b/inet/netgroup.h
@@ -22,9 +22,20 @@ Boston, MA 02111-1307, USA. */
struct __netgrent
{
- const char *host;
- const char *user;
- const char *domain;
+ enum { triple_val, group_val } type;
+
+ union
+ {
+ struct
+ {
+ const char *host;
+ const char *user;
+ const char *domain;
+ }
+ triple;
+
+ const char *group;
+ } val;
};
#endif /* netgroup.h */