diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-09-29 21:37:51 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-09-29 21:37:51 +0200 |
commit | f413be4e52fc7b638ced9cf1c67725258afe7bc4 (patch) | |
tree | 06362a2ed562750a2a12eedc62a3c6d5b9e96aaf /compat | |
parent | 3c436eecebaf3f66c3a2d735f6c567d8eaa75a70 (diff) |
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
Diffstat (limited to 'compat')
-rw-r--r-- | compat/ether.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |