summaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-09 20:57:30 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-09 20:57:30 +0000
commit6251c8efbbe666e5c7d20f257f9771eea4c69015 (patch)
treecd8a160cfd714773ba11358612d806445395a4c5 /libobjc
parentf4a30bd79f3157bbcbde8aa853c04871575db926 (diff)
downloadgcc-6251c8efbbe666e5c7d20f257f9771eea4c69015.tar.gz
gcc/ChangeLog:
PR other/4372 * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h, gthr-tpf.h: Define __gthrw. For all identifiers that might be weak, introduce weakrefs or non-weak aliases with __gthrw, and prefix all uses with __ghtrw. libobjc/ChangeLog: PR other/4372 * thr-objc.c (_XOPEN_SOURCE): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r--libobjc/ChangeLog5
-rw-r--r--libobjc/thr-objc.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index 08ffb2d53e9..a6ff14f6a12 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-09 Alexandre Oliva <aoliva@redhat.com>
+
+ PR other/4372
+ * thr-objc.c (_XOPEN_SOURCE): Define.
+
2005-10-07 Ulrich Weigand <uweigand@de.ibm.com>
PR libobjc/23612
diff --git a/libobjc/thr-objc.c b/libobjc/thr-objc.c
index f2e8c391d70..a859e1eb0fb 100644
--- a/libobjc/thr-objc.c
+++ b/libobjc/thr-objc.c
@@ -24,6 +24,10 @@ Boston, MA 02110-1301, USA. */
covered by the GNU General Public License. */
#define _LIBOBJC
+/* The line below is needed for declarations of functions such as
+ pthread_mutexattr_settype, without which gthr-posix.h may fail to
+ compile within libobjc. */
+#define _XOPEN_SOURCE 500
#include "config.h"
#include "tconfig.h"
#include "coretypes.h"