diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2003-06-02 14:14:10 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2003-06-02 14:14:10 +0300 |
commit | 48377678041e36dce0d78ed725f0fe7b8c03aff9 (patch) | |
tree | 308a95efd00d72a96950ec966afc8bb9a5fe60df /include | |
parent | 17ac9f831fea9f9b841748f27fe1a41896fc19bd (diff) | |
parent | 8f548eb1bb94ff9ca641b39a02cab2a7ecebf192 (diff) | |
download | mariadb-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')
-rw-r--r-- | include/my_global.h | 12 | ||||
-rw-r--r-- | include/thr_alarm.h | 2 |
2 files changed, 11 insertions, 3 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. */ diff --git a/include/thr_alarm.h b/include/thr_alarm.h index 30825d49158..439f046252f 100644 --- a/include/thr_alarm.h +++ b/include/thr_alarm.h @@ -103,7 +103,7 @@ void init_thr_alarm(uint max_alarm); bool thr_alarm(thr_alarm_t *alarmed, uint sec, ALARM *buff); void thr_alarm_kill(pthread_t thread_id); void thr_end_alarm(thr_alarm_t *alarmed); -void end_thr_alarm(void); +void end_thr_alarm(my_bool free_structures); sig_handler process_alarm(int); #ifndef thr_got_alarm bool thr_got_alarm(thr_alarm_t *alrm); |