summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-11-24 08:26:48 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-11-24 08:26:48 +0000
commit68407ac7d8256467a8624d08dd457bbf0c390d0f (patch)
tree8367bf997948e0939ecabf1c748fdb3f06294dcd
parent7d85e835ae617750e614b72bd609076102f39522 (diff)
ifm_data is avilable on {net,open,free}bsd. sync with kame.
-rw-r--r--lib/libc/net/getifaddrs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/net/getifaddrs.c b/lib/libc/net/getifaddrs.c
index 828d2da215b..29348cd492c 100644
--- a/lib/libc/net/getifaddrs.c
+++ b/lib/libc/net/getifaddrs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getifaddrs.c,v 1.2 2000/02/23 15:39:53 itojun Exp $ */
+/* $OpenBSD: getifaddrs.c,v 1.3 2000/11/24 08:26:47 itojun Exp $ */
/*
* Copyright (c) 1995, 1999
@@ -71,9 +71,14 @@
#endif
#if _BSDI_VERSION >= 199802
+/* ifam_data is very specific to recent versions of bsdi */
#define HAVE_IFAM_DATA
#endif
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#define HAVE_IFM_DATA
+#endif
+
int
getifaddrs(struct ifaddrs **pif)
{