summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-16 13:29:26 +1100
committerDamien Miller <djm@mindrot.org>1999-11-16 13:29:26 +1100
commit4874c79a3a05fc18678d7a85d7091f5139630fac (patch)
treec309c17201224df31feafaa308a03da941fd8605 /acconfig.h
parenta7cafae274f8ee56bc36a20a488254432f70c7d5 (diff)
- Fix some Linux libc5 problems reported by Miles Wilson <mw@mctitle.com>
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 2844bdca..05296f9b 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -34,6 +34,10 @@
/* ******************* Shouldn't need to edit below this line ************** */
+#include <sys/types.h> /* For u_intXX_t */
+#include <sys/socket.h> /* For SHUT_XXXX */
+#include <paths.h> /* For _PATH_XXX */
+
#ifndef SHUT_RDWR
enum
{
@@ -46,9 +50,6 @@ enum
};
#endif
-#include <sys/types.h> /* For u_intXX_t */
-#include <paths.h> /* For _PATH_XXX */
-
#if !defined(u_int32_t) && defined(uint32_t)
#define u_int32_t uint32_t
#endif
@@ -57,6 +58,10 @@ enum
#define u_int16_t uint16_t
#endif
+#if !defined(quad_t) && defined(int64_t)
+#define quad_t int64_t
+#endif
+
#ifndef _PATH_LASTLOG
# ifdef LASTLOG_LOCATION
# define _PATH_LASTLOG LASTLOG_LOCATION
@@ -88,3 +93,8 @@ enum
# define _PATH_MAILDIR MAILDIR
# endif
#endif
+
+#ifndef MAX
+# define MAX(a,b) (((a)>(b))?(a):(b))
+# define MIN(a,b) (((a)<(b))?(a):(b))
+#endif