sm_os_linux.h revision 90792
1139823Simp/* 21541Srgrimes * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 31541Srgrimes * All rights reserved. 41541Srgrimes * 51541Srgrimes * By using this file, you agree to the terms and conditions set 61541Srgrimes * forth in the LICENSE file which can be found at the top level of 71541Srgrimes * the sendmail distribution. 81541Srgrimes * 91541Srgrimes * $Id: sm_os_linux.h,v 1.12 2001/10/05 01:52:41 ca Exp $ 101541Srgrimes */ 111541Srgrimes 121541Srgrimes/* 131541Srgrimes** Platform definitions for Linux 141541Srgrimes*/ 151541Srgrimes 161541Srgrimes#define SM_OS_NAME "linux" 171541Srgrimes 181541Srgrimes/* to get version number */ 191541Srgrimes#include <linux/version.h> 201541Srgrimes 211541Srgrimes# if !defined(KERNEL_VERSION) /* not defined in 2.0.x kernel series */ 221541Srgrimes# define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 231541Srgrimes# endif /* ! KERNEL_VERSION */ 241541Srgrimes 251541Srgrimes/* doesn't seem to work on Linux */ 261541Srgrimes#ifndef SM_CONF_SETITIMER 271541Srgrimes# define SM_CONF_SETITIMER 0 281541Srgrimes#endif /* SM_CONF_SETITIMER */ 291541Srgrimes 301541Srgrimes#ifndef SM_CONF_SHM 311541Srgrimes# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,19)) 321541Srgrimes# define SM_CONF_SHM 1 331541Srgrimes# endif /* LINUX_VERSION_CODE */ 341541Srgrimes#endif /* SM_CONF_SHM */ 3517679Spst 361541Srgrimes#define SM_CONF_SYS_CDEFS_H 1 3750477Speter#ifndef SM_CONF_SEM 381541Srgrimes# define SM_CONF_SEM 2 391541Srgrimes#endif /* SM_CONF_SEM */ 402168Spaul#ifndef SM_CONF_MSG 412168Spaul# define SM_CONF_MSG 1 422168Spaul#endif /* SM_CONF_MSG */ 4317679Spst