sm_os_linux.h revision 266692
1139823Simp/*
244165Sjulian * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
344165Sjulian *	All rights reserved.
444165Sjulian *
544165Sjulian * By using this file, you agree to the terms and conditions set
644165Sjulian * forth in the LICENSE file which can be found at the top level of
744165Sjulian * the sendmail distribution.
844165Sjulian *
944165Sjulian *	$Id: sm_os_linux.h,v 1.13 2013-11-22 20:51:34 ca Exp $
1044165Sjulian */
1144165Sjulian
1244165Sjulian/*
1344165Sjulian**  Platform definitions for Linux
1444165Sjulian*/
1544165Sjulian
1644165Sjulian#define SM_OS_NAME	"linux"
1744165Sjulian
1844165Sjulian/* to get version number */
1944165Sjulian#include <linux/version.h>
2044165Sjulian
2144165Sjulian# if !defined(KERNEL_VERSION)	/* not defined in 2.0.x kernel series */
2244165Sjulian#  define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
2344165Sjulian# endif /* ! KERNEL_VERSION */
2444165Sjulian
2544165Sjulian/* doesn't seem to work on Linux */
2644165Sjulian#ifndef SM_CONF_SETITIMER
2744165Sjulian# define SM_CONF_SETITIMER	0
2844165Sjulian#endif /* SM_CONF_SETITIMER */
2944165Sjulian
3044165Sjulian#ifndef SM_CONF_SHM
3144165Sjulian# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,19))
3244165Sjulian#  define SM_CONF_SHM	1
3350477Speter# endif /* LINUX_VERSION_CODE */
3444165Sjulian#endif /* SM_CONF_SHM */
3544165Sjulian
3644165Sjulian#define SM_CONF_SYS_CDEFS_H	1
3744165Sjulian#ifndef SM_CONF_SEM
3844165Sjulian# define SM_CONF_SEM	2
3944165Sjulian#endif /* SM_CONF_SEM */
4044165Sjulian#ifndef SM_CONF_MSG
4144165Sjulian# define SM_CONF_MSG	1
4244165Sjulian#endif /* SM_CONF_MSG */
4344165Sjulian