source: trunk/third/linc/src/linc-compat.h @ 18242

Revision 18242, 1.1 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18241, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * Herein lies a set of private ugly portability
3 * hacks for the mind-numbingly broken Unix like
4 * things that exist out there.
5 */
6#ifndef LINC_HACKS_H
7#define LINC_HACKS_H
8
9#include <sys/types.h>
10#include <sys/socket.h>
11#include <sys/stat.h>
12#include <sys/time.h>
13#include <unistd.h>
14#include <stdio.h>
15#include <stdlib.h>
16#include <limits.h>
17#include <time.h>
18#include <utime.h>
19#include <errno.h>
20#include <string.h>
21#include <netinet/in.h>
22#include <netdb.h>
23
24#ifdef HAVE_NETINET_IN_H
25#include <netinet/in.h>
26#endif
27#ifdef HAVE_NETINET_TCP_H
28#include <netinet/tcp.h>
29#endif
30#ifdef HAVE_SYS_UN_H
31#include <sys/un.h>
32#endif
33#ifdef HAVE_LINUX_IRDA_H
34#include <asm/types.h>
35#include <linux/irda.h>
36#endif
37
38#include <arpa/inet.h>
39#include <arpa/nameser.h>
40#include <resolv.h>
41
42#if !defined (NI_MAXSERV) || !defined (NI_MAXHOST)
43#  include <netdb.h>
44#  include <sys/param.h>
45#endif
46
47#if !defined (NI_MAXHOST)
48#  define NI_MAXHOST MAXHOSTNAMELEN
49#endif
50
51#if !defined (NI_MAXSERV)
52#  define NI_MAXSERV 64
53#endif
54
55#if !defined (INADDR_NONE)
56#  define INADDR_NONE (-1)
57#endif
58
59#endif /* LINC_HACKS_H */
Note: See TracBrowser for help on using the repository browser.