From f413be4e52fc7b638ced9cf1c67725258afe7bc4 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 29 Sep 2010 19:37:51 +0000 Subject: only provide definitions for ether_aton() and ether_ntoa() for platforms missing a definition git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1227 ef36b2f9-881f-0410-afb5-c4e39611909c --- compat/ether.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat') diff --git a/compat/ether.c b/compat/ether.c index 6ab052d..28dadf3 100644 --- a/compat/ether.c +++ b/compat/ether.c @@ -37,9 +37,11 @@ #ifndef HAVE_ETHER_NTOA_R +#ifndef HAVE_ETHER_NTOA_DEFINED /* we define ether_ntoa() here because on some platforms the function is underfined */ extern char *ether_ntoa(const struct ether_addr *e); +#endif /* not HAVE_ETHER_NTOA_DEFINED */ char *ether_ntoa_r(const struct ether_addr *addr,char *buf) { @@ -54,9 +56,11 @@ char *ether_ntoa_r(const struct ether_addr *addr,char *buf) #ifndef HAVE_ETHER_ATON_R +#ifndef HAVE_ETHER_ATON_DEFINED /* we define ether_aton() here because on some platforms the function is underfined */ extern struct ether_addr *ether_aton(const char *s); +#endif /* not HAVE_ETHER_ATON_DEFINED */ struct ether_addr *ether_aton_r(const char *asc,struct ether_addr *addr) { -- cgit v1.2.2