-
Notifications
You must be signed in to change notification settings - Fork 0
/
support.h
37 lines (31 loc) · 865 Bytes
/
support.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* Sentinel - IRC Statistical and Operator Services
** support.h - For systems that do not provide these functions
**
** Copyright W. Campbell and others. See README for more details
** Some code Copyright: Jonathan George, Kai Seidler, ircd-hybrid Team,
** IRCnet IRCD developers.
**
** $Id: support.h,v 1.3 2003/09/29 17:09:29 wcampbel Exp $
*/
#ifndef SUPPORT_H
#define SUPPORT_H
#include <sys/types.h>
/* Fixes for broken operating systems */
#ifndef HAVE_STRLCAT
size_t strlcat(char *, const char *, size_t);
#endif
#ifndef HAVE_STRLCPY
size_t strlcpy(char *, const char *, size_t);
#endif
#ifndef HAVE_INET_PTON
int inet_pton(int, const char *, void *);
#endif
#ifndef HAVE_INET_NTOP
const char *inet_ntop(int, const void *, char *, size_t);
#endif
#if 0
#ifndef AF_INET6
#define AF_INET6 28
#endif
#endif
#endif