summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am2
-rw-r--r--include/config-win.h3
-rw-r--r--include/my_base.h1
-rw-r--r--include/my_global.h8
-rw-r--r--include/my_pthread.h5
-rw-r--r--include/my_semaphore.h5
-rw-r--r--include/my_sys.h1
-rw-r--r--include/violite.h4
8 files changed, 23 insertions, 6 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 7372d3ab417..3a197c310aa 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -35,7 +35,7 @@ noinst_HEADERS = config-win.h config-os2.h config-netware.h \
SUPERCLEANFILES = mysql_version.h my_config.h
# Some include files that may be moved and patched by configure
-DISTCLEANFILES = sched.h
+DISTCLEANFILES = sched.h $(SUPERCLEANFILES)
clean:
$(RM) -f readline/*
diff --git a/include/config-win.h b/include/config-win.h
index 0e01aa75570..b0a30353196 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -153,6 +153,9 @@ typedef uint rf_SetTimer;
#define USE_MB_IDENT 1
#define USE_STRCOLL 1
+/* If LOAD DATA LOCAL INFILE should be enabled by default */
+#define ENABLED_LOCAL_INFILE 1
+
/* Convert some simple functions to Posix */
#define sigset(A,B) signal((A),(B))
diff --git a/include/my_base.h b/include/my_base.h
index b806436fe0e..ac41d9e50ef 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -225,6 +225,7 @@ enum ha_base_keytype {
/* Errorcodes given by functions */
+/* opt_sum_query() assumes these codes are > 1 */
#define HA_ERR_KEY_NOT_FOUND 120 /* Didn't find key on read or update */
#define HA_ERR_FOUND_DUPP_KEY 121 /* Dupplicate key on write */
#define HA_ERR_RECORD_CHANGED 123 /* Uppdate with is recoverable */
diff --git a/include/my_global.h b/include/my_global.h
index 510de43c9ee..86fb2a5ee4d 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -287,6 +287,10 @@ C_MODE_END
#include <asm/atomic.h>
#endif
#include <errno.h> /* Recommended by debian */
+/* We need the following to go around a problem with openssl on solaris */
+#if defined(HAVE_CRYPT_H)
+#include <crypt.h>
+#endif
/* Go around some bugs in different OS and compilers */
#if defined(_HPUX_SOURCE) && defined(HAVE_SYS_STREAM_H)
@@ -306,9 +310,7 @@ C_MODE_END
/* This has to be after include limits.h */
#define HAVE_ERRNO_AS_DEFINE
#define HAVE_FCNTL_LOCK
-#undef HAVE_SYS_UN_H
#undef HAVE_FINITE
-#undef HAVE_RINT
#undef LONGLONG_MIN /* These get wrongly defined in QNX 6.2 */
#undef LONGLONG_MAX /* standard system library 'limits.h' */
#endif
@@ -377,7 +379,7 @@ typedef unsigned short ushort;
#define set_bits(type, bit_count) (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))
#define array_elements(A) ((uint) (sizeof(A)/sizeof(A[0])))
#ifndef HAVE_RINT
-#define rint(A) floor((A)+0.5)
+#define rint(A) floor((A)+(((A) < 0)? -0.5 : 0.5))
#endif
/* Define some general constants */
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 58f89517679..bff82ef7320 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -248,6 +248,11 @@ extern int my_sigwait(const sigset_t *set,int *sig);
#error Requires at least rev 2 of EMX pthreads library.
#endif
+#ifdef __NETWARE__
+void my_pthread_exit(void *status);
+#define pthread_exit(A) my_pthread_exit(A)
+#endif
+
extern int my_pthread_getprio(pthread_t thread_id);
#define pthread_key(T,V) pthread_key_t V
diff --git a/include/my_semaphore.h b/include/my_semaphore.h
index 3431212ec82..7f182bea6bf 100644
--- a/include/my_semaphore.h
+++ b/include/my_semaphore.h
@@ -31,6 +31,8 @@
#ifndef _my_semaphore_h_
#define _my_semaphore_h_
+#ifdef THREAD
+
C_MODE_START
#ifdef HAVE_SEMAPHORE_H
#include <semaphore.h>
@@ -56,4 +58,7 @@ int sem_getvalue(sem_t * sem, unsigned int * sval);
#endif /* !__bsdi__ */
C_MODE_END
+
+#endif /* THREAD */
+
#endif /* !_my_semaphore_h_ */
diff --git a/include/my_sys.h b/include/my_sys.h
index 5a769791955..b4fc20e8471 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -743,6 +743,7 @@ extern my_bool my_uncompress(byte *, ulong *, ulong *);
extern byte *my_compress_alloc(const byte *packet, ulong *len, ulong *complen);
extern ulong checksum(const byte *mem, uint count);
extern uint my_bit_log2(ulong value);
+uint my_count_bits(ulonglong v);
extern void my_sleep(ulong m_seconds);
#ifdef __WIN__
diff --git a/include/violite.h b/include/violite.h
index a5c063700b4..3b61fbf344e 100644
--- a/include/violite.h
+++ b/include/violite.h
@@ -165,7 +165,7 @@ my_bool vio_ssl_should_retry(Vio* vio);
int vio_ssl_close(Vio* vio);
/* Return last error number */
int vio_ssl_errno(Vio *vio);
-my_bool vio_ssl_peer_addr(Vio* vio, char *buf);
+my_bool vio_ssl_peer_addr(Vio* vio, char *buf, uint16 *port);
void vio_ssl_in_addr(Vio *vio, struct in_addr *in);
int vio_ssl_blocking(Vio * vio, my_bool set_blocking_mode, my_bool *old_mode);
@@ -242,7 +242,7 @@ struct st_vio
my_bool (*is_blocking)(Vio*);
int (*viokeepalive)(Vio*, my_bool);
int (*fastsend)(Vio*);
- my_bool (*peer_addr)(Vio*, gptr, uint16*);
+ my_bool (*peer_addr)(Vio*, char *, uint16*);
void (*in_addr)(Vio*, struct in_addr*);
my_bool (*should_retry)(Vio*);
int (*vioclose)(Vio*);