d15a78909d840b5856adf6981cf3a8a2e33d9606
[freeradius.git] / src / modules / rlm_smb / std-includes.h
1 /* RFCNB Standard includes ... */
2 /*
3
4    RFCNB Standard Includes
5
6    Copyright (C) 1996, Richard Sharpe
7
8    One day we will conditionalize these on OS types ...
9
10    This program is free software; you can redistribute it and/or modify
11    it under the terms of the GNU General Public License as published by
12    the Free Software Foundation; either version 2 of the License, or
13    (at your option) any later version.
14    
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License for more details.
19    
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 */
24
25 #include "config.h"
26
27 #define BOOL int
28 typedef short int16;
29
30 #ifdef HAVE_NETDB_H
31 #include <netdb.h>
32 #endif
33
34 #ifdef HAVE_SYS_TYPES_H
35 #include <sys/types.h>
36 #endif
37
38 #ifdef HAVE_NETINET_IN_H
39 #include <netinet/in.h>
40 #endif
41
42 #ifdef HAVE_SYS_SOCKET_H
43 #include <sys/socket.h>
44 #endif
45
46 #ifdef HAVE_ARPA_INET_H
47 #include <arpa/inet.h>
48 #endif
49
50 #include <signal.h>
51 #include <errno.h>
52 #include <stdio.h>
53 #include <stdlib.h>
54
55 #ifdef HAVE_UNISTD_H
56 #include <unistd.h>
57 #endif
58
59 #define TRUE 1
60 #define FALSE 0
61
62 /* Pick up define for INADDR_NONE */
63
64 #ifndef INADDR_NONE
65 #define INADDR_NONE -1
66 #endif