/* $Id: defs_major.h,v 1.9 2006/04/09 07:37:05 hurtta Exp $ */

/******************************************************************************
 *  The Elm (ME+) Mail System  -  $Revision: 1.9 $   $State: Exp $
 *
 *  Modified by: Kari Hurtta <hurtta+elm@posti.FMI.FI> 
 *                           (was hurtta+elm@ozone.FMI.FI)
 ******************************************************************************
 #  Copied from defs.h. It have following copyright:
 #
 *  The Elm Mail System
 *
 *                      Copyright (c) 1988-1992 USENET Community Trust
 *                      Copyright (c) 1986,1987 Dave Taylor
 *****************************************************************************/

#include <stdio.h>
#include <fcntl.h>
#include <signal.h>

#include <sys/stat.h>

#include <sys/types.h>	/* for fundamental types */
#include "../config.h"
#include "sysdefs.h"	/* system/configurable defines */

# define VERSION	"2.4ME+"		/* Version number... */

#if defined(__STDC__) || defined(_AIX)
# define ANSI_C 1
#endif

#if ANSI_C 
#define VOLATILE volatile
#define CONST    const
#define P_(x) x
#else
#define VOLATILE
#define CONST
#define P_(x) ()
#endif

#ifdef MALLOCVOID
typedef	void *	malloc_t;
#else
typedef	char *	malloc_t;
#endif

#ifdef ANSI_C
# include <stdlib.h>
#else
extern	malloc_t	calloc();
extern	int		free();
extern	malloc_t	malloc();
extern	malloc_t	realloc();
extern	void		exit();
extern char		*getenv();
extern long atol();
#endif

#ifdef STRINGS
#  include <strings.h>
#else
#  if defined(_CONVEX_SOURCE) && defined(index)
#    undef _CONVEX_SOURCE
#    include <string.h>     /* Now there is no proto for index. */
#    define _CONVEX_SOURCE
#  else
#    include <string.h>
#  endif
#endif

#if defined(HASWAITPID) || defined(BSD_TYPE) 
#include <sys/wait.h>
#endif

#ifdef I_UNISTD
#include <unistd.h>
#endif

#ifndef	ANSI_C
unsigned sleep();
char *index(), *rindex(); /* names will be traslated by define in config.h */
char *strcpy(), *strcat(), *strncpy(); /* more in string.h in ANSI */
long lseek();
int fseek();
char *getlogin();
unsigned alarm();
#ifndef I_UNISTD
unsigned short getgid(), getuid(); 
#endif
char *cuserid();
#endif


/*
 * Local Variables:
 *  mode:c
 *  c-basic-offset:4
 *  buffer-file-coding-system: iso-8859-1
 * End:
 */


syntax highlighted by Code2HTML, v. 0.9.1