fixup for error logging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30913 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-07-03 05:54:56 +00:00
parent 632f343dc3
commit f9c2cbbd92
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-07-03 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Addictions/NSError+GNUstepBase.m:
Declare _XOPEN_SOURCE so that glibc gives us the correct version of
the strerror_r function.
2010-01-07 Niels Grewe <niels.grewe@halbordnung.de>
* Source/GNUmakefile

View file

@ -22,6 +22,15 @@
Boston, MA 02111 USA.
*/
/* We must define _XOPEN_SOURCE to 600 in order to get the standard
* version of strerror_r when using glibc. Otherwise glibc will give
* us a version which may not populate the buffer.
*/
#define _XOPEN_SOURCE 600
#include <string.h>
#import "common.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSError.h"