From 08611be2545ec4a84357ad343aaec71da92f2ce6 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Mon, 16 Dec 2019 10:35:00 +0000 Subject: [PATCH] [Ada] Fix warning on _REENTRANT 2019-12-16 Arnaud Charlet gcc/ada/ * socket.c: Shutdown warning. From-SVN: r279436 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/socket.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 029b29199dd..13f7799d03d 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2019-12-16 Arnaud Charlet + + * socket.c: Shutdown warning. + 2019-12-16 Arnaud Charlet * libgnarl/s-tataat.ads (Deallocator): Mark as Favor_Top_Level. diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c index 94538d43082..6ca9d5038ac 100644 --- a/gcc/ada/socket.c +++ b/gcc/ada/socket.c @@ -34,7 +34,9 @@ #define ATTRIBUTE_UNUSED __attribute__((unused)) /* Ensure access to errno is thread safe. */ +#ifndef _REENTRANT #define _REENTRANT +#endif #define _THREAD_SAFE #include "gsocket.h" -- 2.30.2