~ubuntu-branches/debian/wheezy/haproxy/wheezy

« back to all changes in this revision

Viewing changes to include/common/compat.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2010-04-15 20:00:34 UTC
  • mfrom: (1.1.8 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100415200034-is2r38tyvmtvi3ml
Tags: 1.4.4-1
* New upstream release
* Add splice and tproxy support
* Add regparm optimization on i386
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef _COMMON_COMPAT_H
23
23
#define _COMMON_COMPAT_H
24
24
 
25
 
/*
26
 
 * Gcc before 3.0 needs [0] to declare a variable-size array
27
 
 */
28
 
#if  __GNUC__  < 3
29
 
#define VAR_ARRAY       0
30
 
#else
31
 
#define VAR_ARRAY
32
 
#endif
33
 
 
34
25
/* This is needed on Linux for Netfilter includes */
 
26
#include <sys/types.h>
35
27
#include <sys/socket.h>
36
 
#include <sys/types.h>
37
28
#include <common/config.h>
38
29
#include <common/standard.h>
39
30
 
66
57
#define MSG_DONTWAIT    0
67
58
#endif
68
59
 
 
60
/* Only Linux defines MSG_MORE */
 
61
#ifndef MSG_MORE
 
62
#define MSG_MORE        0
 
63
#endif
 
64
 
69
65
#if defined(TPROXY) && defined(NETFILTER)
70
66
#include <linux/types.h>
71
67
#include <linux/netfilter_ipv6.h>