Skip to content

Commit 37788da

Browse files
Reapplied portability changes, from changesets by kent, joerg and msvensson
1 parent 9b53276 commit 37788da

File tree

7 files changed

+15
-10
lines changed

7 files changed

+15
-10
lines changed

cmd-line-utils/readline/complete.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333

3434
#include <fcntl.h>
3535

36-
#if defined (HAVE_SYS_FILE_H)
36+
/* FreeBSD 5.3 will not declare u_int in sys/types.h, file.h needs it */
37+
#if defined (HAVE_SYS_FILE_H) && !defined(__FreeBSD__)
3738
# include <sys/file.h>
3839
#endif
3940

include/my_bitmap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,25 @@ extern void bitmap_lock_invert(MY_BITMAP *map);
9696
#define _bitmap_is_set(MAP, BIT) (((uchar*)(MAP)->bitmap)[(BIT) / 8] \
9797
& (1 << ((BIT) & 7)))
9898
#ifndef DBUG_OFF
99-
inline uint32
99+
static inline uint32
100100
bitmap_set_bit(MY_BITMAP *map,uint bit)
101101
{
102102
DBUG_ASSERT(bit < (map)->n_bits);
103103
return _bitmap_set_bit(map,bit);
104104
}
105-
inline uint32
105+
static inline uint32
106106
bitmap_flip_bit(MY_BITMAP *map,uint bit)
107107
{
108108
DBUG_ASSERT(bit < (map)->n_bits);
109109
return _bitmap_flip_bit(map,bit);
110110
}
111-
inline uint32
111+
static inline uint32
112112
bitmap_clear_bit(MY_BITMAP *map,uint bit)
113113
{
114114
DBUG_ASSERT(bit < (map)->n_bits);
115115
return _bitmap_clear_bit(map,bit);
116116
}
117-
inline uint32
117+
static inline uint32
118118
bitmap_is_set(const MY_BITMAP *map,uint bit)
119119
{
120120
DBUG_ASSERT(bit < (map)->n_bits);

mysql-test/t/disabled.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ rpl_until : Unstable test case, bug#12429
1616
rpl_deadlock : Unstable test case, bug#12429
1717
kill : Unstable test case, bug#9712
1818
archive_gis : The test fails on 32bit Linux
19+
compress : Magnus will fix

mysys/base64.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1616

1717
#include <base64.h>
18-
#include <m_string.h> // strchr()
18+
#include <m_string.h> /* strchr() */
1919

2020
#ifndef MAIN
2121

@@ -134,7 +134,8 @@ base64_decode(const char *src, size_t size, void *dst)
134134
{
135135
char b[3];
136136
size_t i= 0;
137-
unsigned char *d= (unsigned char*)dst;
137+
char *dst_base= (char *)dst;
138+
char *d= dst_base;
138139
size_t j;
139140

140141
while (i < size)
@@ -193,7 +194,7 @@ base64_decode(const char *src, size_t size, void *dst)
193194
{
194195
return -1;
195196
}
196-
return d - (unsigned char*)dst;
197+
return d - dst_base;
197198
}
198199

199200

sql/handler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ typedef struct {
491491
longlong list_value;
492492
uint partition_id;
493493
} LIST_PART_ENTRY;
494-
enum Item_result;
495494

496495
class partition_info;
497496

storage/bdb/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ subdirs = btree build_vxworks build_win32 clib common cxx db dbinc \
3030
db_verify dbm dbreg dist env examples_c examples_cxx fileops hash \
3131
hsearch hmac include java libdb_java lock log mp mutex os os_vxworks \
3232
os_win32 perl.BerkeleyDB perl.DB_File qam rep rpc_client rpc_server tcl \
33-
test txn xa
33+
test txn xa sequence
3434

3535
@SET_MAKE@
3636

storage/bdb/build_unix/.IGNORE_ME

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Some combinations of the gzip and tar archive exploders found
2+
on Linux systems ignore directories that don't have any files
3+
(other than symbolic links) in them. So, here's a file.

0 commit comments

Comments
 (0)