summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-08 13:17:43 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-08 13:17:43 +0200
commit3c80fae407f451691a4a4178617986e32d0c8162 (patch)
tree90cd265cc8f001457932bb7ad8bd4dcae8fa43bc /src
parentc1e1831ded0330771fd175f1c8138ed82c90f9f8 (diff)
parentfc7d2c35182e61cb5fff41bcf485b9e24f7ba39b (diff)
downloadouroboros-3c80fae407f451691a4a4178617986e32d0c8162.tar.gz
ouroboros-3c80fae407f451691a4a4178617986e32d0c8162.zip
Merged in sandervrijders/ouroboros/be (pull request #188)
lib, tools: Add POSIX version to source files
Diffstat (limited to 'src')
-rw-r--r--src/lib/cdap.c1
-rw-r--r--src/lib/time_utils.c1
-rw-r--r--src/tools/echo/echo.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/cdap.c b/src/lib/cdap.c
index 4599fd8b..0c6140eb 100644
--- a/src/lib/cdap.c
+++ b/src/lib/cdap.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <ouroboros/config.h>
#include <ouroboros/cdap.h>
#include <ouroboros/bitmap.h>
#include <ouroboros/common.h>
diff --git a/src/lib/time_utils.c b/src/lib/time_utils.c
index 2521f217..d0b312da 100644
--- a/src/lib/time_utils.c
+++ b/src/lib/time_utils.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <ouroboros/config.h>
#include <ouroboros/time_utils.h>
#include <stddef.h>
diff --git a/src/tools/echo/echo.c b/src/tools/echo/echo.c
index 4484dc71..ab7d5557 100644
--- a/src/tools/echo/echo.c
+++ b/src/tools/echo/echo.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#define _POSIX_C_SOURCE 199309L
+
#include <stdio.h>
#include <string.h>