pywrap: Fix error reporting.
commit40459eab2c4a3af4a5eccd1b3cbe1bd94353f9c7
authorCyril Hrubis <metan@ucw.cz>
Mon, 4 Jun 2012 14:22:41 +0000 (4 16:22 +0200)
committerCyril Hrubis <metan@ucw.cz>
Mon, 4 Jun 2012 14:29:12 +0000 (4 16:29 +0200)
tree558b985efa0de1e66451000c49c3589d97723dbe
parent1d12df083de4555dbd7aaba94980ca96c71988b8
pywrap: Fix error reporting.

The python headers define _GNU_SOURCE so the
strerror_r variant is GNU one, which may use the passed
buffer to, but that is not guaranted it also may return
pointer to some statically allocated buffer.

Also make sure _GNU_SOURCE is defined in pywrap.mk.
pylib/gfxprim/common.i
pywrap.mk