summaryrefslogtreecommitdiff
path: root/src/lib/irm.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-05 07:03:17 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-05 07:12:24 +0200
commit5c745cccbe1774780f499e5cc979eb77d2aac5c7 (patch)
tree566e317c4afdf604e2ffb53098ff469a35eb0e6c /src/lib/irm.c
parent66fd022a705cf65cbe37c446dbd87919a43a7fd3 (diff)
downloadouroboros-5c745cccbe1774780f499e5cc979eb77d2aac5c7.tar.gz
ouroboros-5c745cccbe1774780f499e5cc979eb77d2aac5c7.zip
lib: utils: deprecate strdup
When introducing robust mutexes, ouroboros moved to POSIX 200809L which includes the strdup function in <string.h>. Including <ouroboros/config.h> will give access to strdup. Fixes #15.
Diffstat (limited to 'src/lib/irm.c')
-rw-r--r--src/lib/irm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/irm.c b/src/lib/irm.c
index 68ffdf03..8f475e38 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -22,12 +22,12 @@
#define OUROBOROS_PREFIX "libouroboros-irm"
+#include <ouroboros/config.h>
#include <ouroboros/errno.h>
#include <ouroboros/irm.h>
#include <ouroboros/common.h>
#include <ouroboros/logs.h>
#include <ouroboros/sockets.h>
-#include <ouroboros/utils.h>
#include <string.h>
#include <stdlib.h>