diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-17 12:12:41 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-10-17 12:12:41 +0200 |
commit | 6cf3eb58587e80d851aa53d0a250c7839fa15b02 (patch) | |
tree | c84a4b22bb81c49c722be25b47bfd2ac17fc32b6 /compat | |
parent | 758c85a0aa8b18d81e2701753edad479a78e740e (diff) |
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
Diffstat (limited to 'compat')
-rw-r--r-- | compat/ether.c | 12 |
1 files changed, 11 insertions, 1 deletions
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; |