You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/01/24 16:57:02 UTC
svn commit: r499450 -
/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c
Author: hindessm
Date: Wed Jan 24 07:57:00 2007
New Revision: 499450
URL: http://svn.apache.org/viewvc?view=rev&rev=499450
Log:
Try a little harder to get the correct version of strerror_r on some
versions of Linux.
Modified:
harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c
Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c?view=diff&rev=499450&r1=499449&r2=499450
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hyerrorhelpers.c Wed Jan 24 07:57:00 2007
@@ -36,6 +36,9 @@
/* Ensure we get the recommended XSI-compliant strerror_r() */
#define _XOPEN_SOURCE 600
+#undef _GNU_SOURCE
+#define __USE_XOPEN2K
+#undef __USE_GNU
#include <string.h>
#define CDEV_CURRENT_FUNCTION errorMessage