summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-14 15:35:08 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-14 15:35:08 +0200
commit607d991424006c083be63878b6a606e76679e1ce (patch)
treec693bdc4a4efe42aaa7735dc681c10e1c56f9f6c /sysdep/unix/io.c
parentdcc6049444f5e12e0d0fcc4cfbb244c08b4c20b0 (diff)
downloadbird-607d991424006c083be63878b6a606e76679e1ce.tar
bird-607d991424006c083be63878b6a606e76679e1ce.zip
Fixes build on newer Linux systems.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index c9e6fe1..dc7146f 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -7,6 +7,10 @@
* Can be freely distributed and used under the terms of the GNU GPL.
*/
+/* Unfortunately, some glibc versions hide parts of RFC 3542 API
+ if _GNU_SOURCE is not defined. */
+#define _GNU_SOURCE 1
+
#include <stdio.h>
#include <stdlib.h>
#include <time.h>