]> git.ipfire.org Git - thirdparty/squid.git/blame - lib/rfcnb/std-includes.h
SourceFormat Enforcement
[thirdparty/squid.git] / lib / rfcnb / std-includes.h
CommitLineData
462566c5 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
462566c5
AJ
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
7c16470c 9/*
6ca34f6f
HN
10 *
11 * RFCNB Standard Includes
12 *
13 * Copyright (C) 1996, Richard Sharpe
14 */
7c16470c 15
7c16470c 16/*
6ca34f6f
HN
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 */
462566c5 31
7c16470c
AJ
32#ifndef _RFCNB_STD_INCLUDES_H
33#define _RFCNB_STD_INCLUDES_H
34
462566c5
AJ
35/* RFCNB Standard includes ... */
36/* One day we will conditionalize these on OS types ... */
37
7c16470c
AJ
38#define BOOL int
39typedef short int16;
40
5149036f 41#if HAVE_NETDB_H
7c16470c 42#include <netdb.h>
5149036f 43#endif
7c16470c 44#include <sys/types.h>
5149036f 45#if HAVE_NETINET_IN_H
7c16470c 46#include <netinet/in.h>
5149036f
AJ
47#endif
48#if HAVE_SYS_SOCKET_H
7c16470c 49#include <sys/socket.h>
5149036f 50#endif
7c16470c
AJ
51#include <signal.h>
52#include <errno.h>
7c16470c
AJ
53#include <unistd.h>
54
55#define TRUE 1
56#define FALSE 0
57
58/* Pick up define for INADDR_NONE */
59
60#ifndef INADDR_NONE
61#define INADDR_NONE -1
62#endif
63
64#endif /* _RFCNB_STD_INCLUDES_H */
f53969cc 65