blob: 838430a38c4e282b96e0e54b53811b8cee80e109 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
* $Id$
*/
#if (defined(__sun__) || defined(sun)) && !defined(__svr4__)
/* Stupid SunOS 4 doesn't have prototypes in the header files */
/* Some includes just to make the compiler be quiet */
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
extern int fprintf(FILE *fp, const char *format, ...);
extern int _flsbuf(unsigned char c, FILE *fp);
extern int puts(const char *str);
extern int printf(const char *format, ...);
extern int chdir(const char *path);
extern int gethostname(char *buf, int bufsize);
extern int atoi(const char *str);
extern int perror(const char *str);
extern int socket (int af, int type, int protocol);
extern int bind (int s, struct sockaddr *name, int namelen);
extern int chdir (const char *path);
#endif
#if (defined(__sun__) || defined(sun)) && defined(__svr4__)
extern char *strdup(const char *str);
#define NEED_GETHOSTNAME
#define NEED_SVCSOC_H
#endif
#if defined(hpux) || defined(__hpux__)
/* HP is really... Ah well. */
#define _INCLUDE_HPUX_SOURCE
#define _INCLUDE_XOPEN_SOURCE
#define _INCLUDE_POSIX_SOURCE
#define _INCLUDE_AES_SOURCE
extern void svcerr_systemerr();
#endif
#if defined(linux) || defined(__linux__)
/* Need this because some header files doesn't check for __linux__ */
#if !defined(linux)
#define linux linux
#endif
/* Needed for non-ANSI prototypes */
#define _SVID_SOURCE
/* Needed for gethostname() */
#define _BSD_SOURCE
#endif
|