summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-06-02 14:14:10 +0300
committerunknown <Sinisa@sinisa.nasamreza.org>2003-06-02 14:14:10 +0300
commit48377678041e36dce0d78ed725f0fe7b8c03aff9 (patch)
tree308a95efd00d72a96950ec966afc8bb9a5fe60df /include/my_global.h
parent17ac9f831fea9f9b841748f27fe1a41896fc19bd (diff)
parent8f548eb1bb94ff9ca641b39a02cab2a7ecebf192 (diff)
downloadmariadb-git-48377678041e36dce0d78ed725f0fe7b8c03aff9.tar.gz
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0 client/mysql.cc: Auto merged include/my_global.h: Auto merged
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 0bacb762421..51e267fc977 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 MySQL AB
+/* Copyright (C) 2000-2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -246,7 +246,7 @@ C_MODE_END
# endif
#endif /* TIME_WITH_SYS_TIME */
#ifdef HAVE_UNISTD_H
-#if defined(HAVE_OPENSSL) && !defined(__FreeBSD__) && !defined(NeXT)
+#if defined(HAVE_OPENSSL) && !defined(__FreeBSD__) && !defined(NeXT) && !defined(__OpenBSD__)
#define crypt unistd_crypt
#endif
#include <unistd.h>
@@ -636,7 +636,15 @@ extern double my_atof(const char*);
Max size that must be added to a so that we know Size to make
adressable obj.
*/
+#if SIZEOF_CHARP == 4
typedef long my_ptrdiff_t;
+#else
+typedef long long my_ptrdiff_t;
+#endif
+
+/* typedef used for length of string; Should be unsigned! */
+typedef ulong size_str;
+
#define MY_ALIGN(A,L) (((A) + (L) - 1) & ~((L) - 1))
#define ALIGN_SIZE(A) MY_ALIGN((A),sizeof(double))
/* Size to make adressable obj. */