summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/defines.h b/defines.h
index cd273066d..e4ccc5407 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.164 2011/01/17 10:15:31 dtucker Exp $ */ 28/* $Id: defines.h,v 1.167 2011/06/03 01:17:49 tim Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -45,6 +45,8 @@ enum
45/* 45/*
46 * Definitions for IP type of service (ip_tos) 46 * Definitions for IP type of service (ip_tos)
47 */ 47 */
48#include <netinet/in_systm.h>
49#include <netinet/ip.h>
48#ifndef IPTOS_LOWDELAY 50#ifndef IPTOS_LOWDELAY
49# define IPTOS_LOWDELAY 0x10 51# define IPTOS_LOWDELAY 0x10
50# define IPTOS_THROUGHPUT 0x08 52# define IPTOS_THROUGHPUT 0x08
@@ -56,8 +58,6 @@ enum
56/* 58/*
57 * Definitions for DiffServ Codepoints as per RFC2474 59 * Definitions for DiffServ Codepoints as per RFC2474
58 */ 60 */
59#include <netinet/in_systm.h>
60#include <netinet/ip.h>
61#ifndef IPTOS_DSCP_AF11 61#ifndef IPTOS_DSCP_AF11
62# define IPTOS_DSCP_AF11 0x28 62# define IPTOS_DSCP_AF11 0x28
63# define IPTOS_DSCP_AF12 0x30 63# define IPTOS_DSCP_AF12 0x30
@@ -131,6 +131,10 @@ enum
131# define O_NONBLOCK 00004 /* Non Blocking Open */ 131# define O_NONBLOCK 00004 /* Non Blocking Open */
132#endif 132#endif
133 133
134#ifndef S_IFSOCK
135# define S_IFSOCK 0
136#endif /* S_IFSOCK */
137
134#ifndef S_ISDIR 138#ifndef S_ISDIR
135# define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) 139# define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR))
136#endif /* S_ISDIR */ 140#endif /* S_ISDIR */
@@ -385,18 +389,15 @@ struct winsize {
385# define _PATH_DEVNULL "/dev/null" 389# define _PATH_DEVNULL "/dev/null"
386#endif 390#endif
387 391
388#ifndef MAIL_DIRECTORY 392/* user may have set a different path */
389# define MAIL_DIRECTORY "/var/spool/mail" 393#if defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY)
390#endif 394# undef _PATH_MAILDIR MAILDIR
395#endif /* defined(_PATH_MAILDIR) && defined(MAIL_DIRECTORY) */
391 396
392#ifndef MAILDIR 397#ifdef MAIL_DIRECTORY
393# define MAILDIR MAIL_DIRECTORY 398# define _PATH_MAILDIR MAIL_DIRECTORY
394#endif 399#endif
395 400
396#if !defined(_PATH_MAILDIR) && defined(MAILDIR)
397# define _PATH_MAILDIR MAILDIR
398#endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */
399
400#ifndef _PATH_NOLOGIN 401#ifndef _PATH_NOLOGIN
401# define _PATH_NOLOGIN "/etc/nologin" 402# define _PATH_NOLOGIN "/etc/nologin"
402#endif 403#endif