libprocess/libprocess — pull request #2 by bitbckt (2012-07-05 18:23:08+00:00)
Title: perror() requires stdio.h on some platforms.

On Debian wheezy and GCC 4.7.1, I get the following during the build:

In file included from ./include/process/process.hpp:19:0,
from src/latch.cpp:3:
./include/process/thread.hpp: In constructor 'ThreadLocal::ThreadLocal()':
./include/process/thread.hpp:12:65: error: there are no arguments to 'perror' that depend on a template parameter, so a declaration of 'perror' must be available [-fpermissive]
./include/process/thread.hpp:12:65: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./include/process/thread.hpp: In member function 'ThreadLocal& ThreadLocal::operator=(T*)':
./include/process/thread.hpp:20:63: error: there are no arguments to 'perror' that depend on a template parameter, so a declaration of 'perror' must be available [-fpermissive]

This patch resolves the missing declaration.