#ifndef COMPAT_H
#define COMPAT_H

#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif

#ifndef HAVE_INET_ATON
#undef inet_aton
#define inet_aton bopm_inet_aton
extern int bopm_inet_aton(const char *cp, struct in_addr *inp);
#endif

#ifndef HAVE_SNPRINTF
#undef snprintf
#define snprintf bopm_snprintf
#endif

#ifndef HAVE_VSNPRINTF
#undef vsnprintf
#define vsnprintf bopm_vsnprintf
#endif

#ifndef HAVE_INET_PTON
#undef inet_pton
#define inet_pton bopm_inet_pton
#endif

#endif


syntax highlighted by Code2HTML, v. 0.9.1