File: sm_os_linux.h

package info (click to toggle)
sendmail 8.15.2-22%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,848 kB
  • sloc: ansic: 95,723; perl: 7,444; sh: 5,308; makefile: 831
file content (46 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
 *	All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at the top level of
 * the sendmail distribution.
 *
 *	$Id: sm_os_linux.h,v 1.13 2013-11-22 20:51:34 ca Exp $
 */

/*
**  Platform definitions for Linux
*/

#define SM_OS_NAME	"linux"

#if defined(__linux__)

 /* to get version number */
# include <linux/version.h>

#  if !defined(KERNEL_VERSION)	/* not defined in 2.0.x kernel series */
#   define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#  endif /* ! KERNEL_VERSION */

 /* doesn't seem to work on Linux */
# ifndef SM_CONF_SETITIMER
#  define SM_CONF_SETITIMER	0
# endif /* SM_CONF_SETITIMER */

# ifndef SM_CONF_SHM
#  if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,19))
#   define SM_CONF_SHM	1
#  endif /* LINUX_VERSION_CODE */
# endif /* SM_CONF_SHM */

#endif /* (__linux__) */

#define SM_CONF_SYS_CDEFS_H	1
#ifndef SM_CONF_SEM
# define SM_CONF_SEM	2
#endif /* SM_CONF_SEM */
#ifndef SM_CONF_MSG
# define SM_CONF_MSG	1
#endif /* SM_CONF_MSG */