Skip to content

Commit 0c07bd4

Browse files
committed
Build fixes for MacOSX
1 parent 92879f2 commit 0c07bd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmake/FindIconv.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ endif (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
77

88
IF(APPLE)
99
find_path(ICONV_INCLUDE_DIR iconv.h PATHS
10-
/usr/include/
1110
/opt/local/include/
11+
/usr/include/
1212
NO_CMAKE_SYSTEM_PATH)
1313
ELSE()
1414
find_path(ICONV_INCLUDE_DIR iconv.h)
1515
ENDIF()
1616

1717
IF(APPLE)
1818
find_library(ICONV_LIBRARIES NAMES iconv libiconv c PATHS
19-
/usr/lib/
2019
/opt/local/lib/
20+
/usr/lib/
2121
NO_CMAKE_SYSTEM_PATH)
2222
ELSE()
2323
find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)

libmariadb/hash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void hash_free(HASH *hash)
9494
handle inline functions that are not defined as native types
9595
*/
9696

97-
inline char*
97+
static inline char*
9898
hash_key(HASH *hash,const uchar *record,uint *length,my_bool first)
9999
{
100100
if (hash->get_key)
@@ -192,7 +192,7 @@ uint calc_hashnr_caseup(const uchar *key, uint len)
192192

193193

194194
#ifndef __SUNPRO_C /* SUNPRO can't handle this */
195-
inline
195+
static inline
196196
#endif
197197
unsigned int rec_hashnr(HASH *hash,const uchar *record)
198198
{

0 commit comments

Comments
 (0)