aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/socket.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2019-12-16 10:35:00 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-12-16 10:35:00 +0000
commit08611be2545ec4a84357ad343aaec71da92f2ce6 (patch)
tree8ab2ffe2b9b8376082b8b0d0fef4df6b78c53e30 /gcc/ada/socket.c
parentc1c3784bd98e6533ef0642dd1aca662fbb64bee2 (diff)
downloadgcc-08611be2545ec4a84357ad343aaec71da92f2ce6.zip
gcc-08611be2545ec4a84357ad343aaec71da92f2ce6.tar.gz
gcc-08611be2545ec4a84357ad343aaec71da92f2ce6.tar.bz2
[Ada] Fix warning on _REENTRANT
2019-12-16 Arnaud Charlet <charlet@adacore.com> gcc/ada/ * socket.c: Shutdown warning. From-SVN: r279436
Diffstat (limited to 'gcc/ada/socket.c')
-rw-r--r--gcc/ada/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c
index 94538d4..6ca9d50 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"