GCC 4.3 cleans up the include dependencies of the C++ stdlib headers. The
result is some packages have missing includes. This patch fixes one such error
in flac-1.2.1.
make[5]: Entering directory
`/var/tmp/portage/media-libs/flac-1.2.1-r1/work/flac-1.2.1/examples/cpp/encode/file'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../../..
-DFLaC__INLINE=__inline__ -DNDEBUG -I../../../.. -I./include
-I../../../../include -O2 -g -march=native -fomit-frame-pointer -pipe -c -o
main.o main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:75: error: 'memcmp' was not declared in this scope
make[5]: *** [main.o] Error 1
flac-1.2.1-gcc-4.3-includes.patch
Logged In: YES
user_id=78173
Originator: NO
for source consistency I'd prefer to use the C headers, does
#include <string.h>
also work? (instead of <cstring>)
Logged In: YES
user_id=1415513
Originator: YES
yep, that works fine.
Logged In: YES
user_id=78173
Originator: NO
ok, fixed in CVS