* Added some functions to missing.c: str[n]casecmp,
[freeradius.git] / src / include / missing.h
1 /*
2  * missing.h    Replacements for functions that are or can be
3  *              missing on some platforms.
4  *
5  * Version:     $Id$
6  *
7  */
8
9 #ifndef HAVE_CRYPT
10 char *crypt(char *key, char *salt);
11 #endif
12
13 #ifndef HAVE_STRNCASECMP
14 int strncasecmp(char *s1, char *s2, int n);
15 #endif
16
17 #ifndef HAVE_STRCASECMP
18 int strcasecmp(char *s1, char *s2);
19 #endif
20
21 #ifndef HAVE_INET_ATON
22 struct in_addr;
23 int inet_aton(char *cp, struct in_addr *inp);
24 #endif
25
26 #ifndef HAVE_GETHOSTNAME
27 int gethostname(char *name, int len);
28 #endif
29
30 #ifndef HAVE_SETLINEBUF
31 #define setlinebuf(x)     0
32 #endif
33