summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/acconfig.h b/acconfig.h
index 2844bdca2..05296f9ba 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -34,6 +34,10 @@
34 34
35/* ******************* Shouldn't need to edit below this line ************** */ 35/* ******************* Shouldn't need to edit below this line ************** */
36 36
37#include <sys/types.h> /* For u_intXX_t */
38#include <sys/socket.h> /* For SHUT_XXXX */
39#include <paths.h> /* For _PATH_XXX */
40
37#ifndef SHUT_RDWR 41#ifndef SHUT_RDWR
38enum 42enum
39{ 43{
@@ -46,9 +50,6 @@ enum
46}; 50};
47#endif 51#endif
48 52
49#include <sys/types.h> /* For u_intXX_t */
50#include <paths.h> /* For _PATH_XXX */
51
52#if !defined(u_int32_t) && defined(uint32_t) 53#if !defined(u_int32_t) && defined(uint32_t)
53#define u_int32_t uint32_t 54#define u_int32_t uint32_t
54#endif 55#endif
@@ -57,6 +58,10 @@ enum
57#define u_int16_t uint16_t 58#define u_int16_t uint16_t
58#endif 59#endif
59 60
61#if !defined(quad_t) && defined(int64_t)
62#define quad_t int64_t
63#endif
64
60#ifndef _PATH_LASTLOG 65#ifndef _PATH_LASTLOG
61# ifdef LASTLOG_LOCATION 66# ifdef LASTLOG_LOCATION
62# define _PATH_LASTLOG LASTLOG_LOCATION 67# define _PATH_LASTLOG LASTLOG_LOCATION
@@ -88,3 +93,8 @@ enum
88# define _PATH_MAILDIR MAILDIR 93# define _PATH_MAILDIR MAILDIR
89# endif 94# endif
90#endif 95#endif
96
97#ifndef MAX
98# define MAX(a,b) (((a)>(b))?(a):(b))
99# define MIN(a,b) (((a)<(b))?(a):(b))
100#endif