The _func_ patch doesn't appear to work (NetBSD 6.1, gcc 4.5.3), many of these warnings...
Scanning dependencies of target strings
[ 4%] Building C object strings/CMakeFiles/strings.dir/bchange.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/bchange.c:39:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
[ 4%] Building C object strings/CMakeFiles/strings.dir/bmove_upp.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/bmove_upp.c:38:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
[ 4%] Building C object strings/CMakeFiles/strings.dir/ctype-big5.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/ctype-big5.c:30:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
[ 4%] Building C object strings/CMakeFiles/strings.dir/ctype-bin.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/ctype-bin.c:22:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
My suggested fix was better.
The _func_ patch doesn't appear to work (NetBSD 6.1, gcc 4.5.3), many of these warnings...
Scanning dependencies of target strings
[ 4%] Building C object strings/CMakeFiles/strings.dir/bchange.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/bchange.c:39:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
[ 4%] Building C object strings/CMakeFiles/strings.dir/bmove_upp.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/bmove_upp.c:38:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
[ 4%] Building C object strings/CMakeFiles/strings.dir/ctype-big5.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/ctype-big5.c:30:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
[ 4%] Building C object strings/CMakeFiles/strings.dir/ctype-bin.c.o
In file included from /usr/local/src/mariadb-5.5.30/strings/strings_def.h:20:0,
from /usr/local/src/mariadb-5.5.30/strings/ctype-bin.c:22:
/usr/local/src/mariadb-5.5.30/include/my_global.h:1453:0: warning: "_func_" redefined
/usr/include/sys/cdefs.h:353:0: note: this is the location of the previous definition
My suggested fix was better.