me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
327 stars 76 forks source link

Missing definition for pthread_setname_np #31

Closed nkolban closed 8 years ago

nkolban commented 8 years ago

When we build a sketch, there is now a warning that pthread_setname_np() is undefined. This can be found in wiring_thread.c. Checking the man page here, http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html, it seems that this requires the definition of the symbol _GNU_SOURCE. This issues requests a resolution for a clean compile by either adding the symbol definition as needed or else removing / replacing the function call that is creating the undefined.

me-no-dev commented 8 years ago

I have added the definition but you have not updated your platform.txt