Import sendmail 8.13.7
[dragonfly.git] / contrib / sendmail-8.13.7 / include / sm / os / sm_os_linux.h
blobf232c497b1ed833cf8ca8a3ed8bf165662f74606
1 /*
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
9 * $Id: sm_os_linux.h,v 1.12 2001/10/05 01:52:41 ca Exp $
13 ** Platform definitions for Linux
16 #define SM_OS_NAME "linux"
18 /* to get version number */
19 #include <linux/version.h>
21 # if !defined(KERNEL_VERSION) /* not defined in 2.0.x kernel series */
22 # define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
23 # endif /* ! KERNEL_VERSION */
25 /* doesn't seem to work on Linux */
26 #ifndef SM_CONF_SETITIMER
27 # define SM_CONF_SETITIMER 0
28 #endif /* SM_CONF_SETITIMER */
30 #ifndef SM_CONF_SHM
31 # if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,19))
32 # define SM_CONF_SHM 1
33 # endif /* LINUX_VERSION_CODE */
34 #endif /* SM_CONF_SHM */
36 #define SM_CONF_SYS_CDEFS_H 1
37 #ifndef SM_CONF_SEM
38 # define SM_CONF_SEM 2
39 #endif /* SM_CONF_SEM */
40 #ifndef SM_CONF_MSG
41 # define SM_CONF_MSG 1
42 #endif /* SM_CONF_MSG */