~ubuntu-branches/ubuntu/natty/exim4/natty-updates

« back to all changes in this revision

Viewing changes to OS/os.h-Linux

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2010-01-01 16:28:19 UTC
  • mfrom: (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100101162819-htn71my7yj4v1vkr
Tags: 4.71-3ubuntu1
* Merge with Debian unstable (lp: #501657). Remaining changes:
  + debian/patches/71_exiq_grep_error_on_messages_without_size.dpatch:
    Improve handling of broken messages when "exim4 -bp" (mailq) reports
    lines without size info.
  + Don't declare a Provides: default-mta; in Ubuntu, we want postfix to be
    the default.
  + debian/control: Change build dependencies to MySQL 5.1.
  + debian/{control,rules}: add and enable hardened build for PIE
    (Debian bug 542726).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Cambridge: exim/exim-src/OS/os.h-Linux,v 1.8 2009/06/10 07:34:04 tom Exp $ */
 
2
 
 
3
/* Exim: OS-specific C header file for Linux */
 
4
 
 
5
#define CRYPT_H
 
6
#define GLIBC_IP_OPTIONS
 
7
#define HAVE_MMAP
 
8
#define HAVE_BSD_GETLOADAVG
 
9
#define HAVE_SYS_STATVFS_H
 
10
#define NO_IP_VAR_H
 
11
#define SIG_IGN_WORKS
 
12
 
 
13
/* When using the DKIM, setting HAVE_LINUX_SENDFILE can increase
 
14
performance on outgoing mail a bit. Note: With older glibc versions
 
15
this setting will conflict with the _FILE_OFFSET_BITS=64 setting
 
16
defined as part of the Linux CFLAGS. */
 
17
 
 
18
/* #define HAVE_LINUX_SENDFILE */
 
19
 
 
20
#define F_FREESP     O_TRUNC
 
21
typedef struct flock flock_t;
 
22
 
 
23
#define os_strsignal strsignal
 
24
#define OS_STRSIGNAL
 
25
 
 
26
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
 
27
#define SIOCGIFCONF_GIVES_ADDR
 
28
#define HAVE_SYS_MOUNT_H
 
29
#endif
 
30
 
 
31
#if defined(__linux__)
 
32
 
 
33
/* Some versions of Linux need explicit sync-ing of directories as well as
 
34
files. This setting requests that. If the directory is on NFS, it may not
 
35
be possible to sync it - in that case, Exim now should ignore the error. But
 
36
if you have problems in that area, try undefining this. But be aware that you
 
37
may be in a situation where files are not being properly "committed to stable
 
38
storage" as quickly as Exim thinks they are. */
 
39
 
 
40
#define NEED_SYNC_DIRECTORY
 
41
 
 
42
/* Other OS have "const" in here */
 
43
#define ICONV_ARG2_TYPE char **
 
44
 
 
45
#define os_find_running_interfaces os_find_running_interfaces_linux
 
46
 
 
47
/* Need a prototype for the Linux-specific function. The structure hasn't
 
48
been defined yet, so we need to pre-declare it. */
 
49
 
 
50
struct ip_address_item;
 
51
extern struct ip_address_item *os_find_running_interfaces_linux(void);
 
52
 
 
53
#endif /* __linux__ */
 
54
 
 
55
/* End */