uclibc only defines strndup(3) if _GNU_SOURCE is defined

References #516.
This commit is contained in:
Tobias Brunner
2014-02-19 16:11:47 +01:00
parent 09417da49c
commit ab13364c65
13 changed files with 43 additions and 25 deletions
+3 -2
View File
@@ -13,12 +13,13 @@
* for more details.
*/
#define _GNU_SOURCE /* for stdndup() */
#include <string.h>
#include "imv_os_database.h"
#include <utils/debug.h>
#include <string.h>
typedef struct private_imv_os_database_t private_imv_os_database_t;
/**