diff options
author | dimitri staessens <[email protected]> | 2016-07-05 07:03:17 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-07-05 07:12:24 +0200 |
commit | 5c745cccbe1774780f499e5cc979eb77d2aac5c7 (patch) | |
tree | 566e317c4afdf604e2ffb53098ff469a35eb0e6c /src/ipcpd/ipcp-data.c | |
parent | 66fd022a705cf65cbe37c446dbd87919a43a7fd3 (diff) | |
download | ouroboros-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/ipcpd/ipcp-data.c')
-rw-r--r-- | src/ipcpd/ipcp-data.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcpd/ipcp-data.c b/src/ipcpd/ipcp-data.c index 76fc4bcd..8dc708b2 100644 --- a/src/ipcpd/ipcp-data.c +++ b/src/ipcpd/ipcp-data.c @@ -21,15 +21,16 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "ipcp-data.h" +#include <ouroboros/config.h> #include <ouroboros/shm_du_map.h> #include <ouroboros/list.h> -#include <ouroboros/utils.h> #define OUROBOROS_PREFIX "ipcp-utils" #include <ouroboros/logs.h> +#include "ipcp-data.h" + #include <string.h> #include <stdlib.h> |