1 /* 2 * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers. 3 * All rights reserved. 4 * 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. 8 * 9 * $Id: sm_os_linux.h,v 1.13 2013-11-22 20:51:34 ca Exp $ 10 */ 11 12 /* 13 ** Platform definitions for Linux 14 */ 15 16 #define SM_OS_NAME "linux" 17 18 /* to get version number */ 19 #include <linux/version.h> 20 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 */ 24 25 /* doesn't seem to work on Linux */ 26 #ifndef SM_CONF_SETITIMER 27 # define SM_CONF_SETITIMER 0 28 #endif /* SM_CONF_SETITIMER */ 29 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 */ 35 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 */ 43