From 6cf3eb58587e80d851aa53d0a250c7839fa15b02 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 17 Oct 2009 10:12:41 +0000 Subject: also provide some function definitions for ether_ntoa() and ether_aton() because definitions seem to be missing on some platforms git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1006 ef36b2f9-881f-0410-afb5-c4e39611909c --- compat/ether.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'compat') diff --git a/compat/ether.c b/compat/ether.c index 707adf7..0f33481 100644 --- a/compat/ether.c +++ b/compat/ether.c @@ -1,7 +1,7 @@ /* ether.c - useful ethernet functions for systems lacking those - Copyright (C) 2008 Arthur de Jong + Copyright (C) 2008, 2009 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -36,6 +36,11 @@ /* these functions are not really reentrant */ #ifndef HAVE_ETHER_NTOA_R + +/* we define ether_ntoa() here because on some platforms the function is + underfined */ +char *ether_ntoa(struct ether_addr *e); + char *ether_ntoa_r(const struct ether_addr *addr,char *buf) { char *tmp; @@ -48,6 +53,11 @@ char *ether_ntoa_r(const struct ether_addr *addr,char *buf) #endif /* not HAVE_ETHER_NTOA_R */ #ifndef HAVE_ETHER_ATON_R + +/* we define ether_aton() here because on some platforms the function is + underfined */ +struct ether_addr *ether_aton(char *s); + struct ether_addr *ether_aton_r(const char *asc,struct ether_addr *addr) { struct ether_addr *tmp; -- cgit v1.2.3