uclibc only defines strndup(3) if _GNU_SOURCE is defined
References #516.
This commit is contained in:
parent
09417da49c
commit
ab13364c65
|
@ -14,12 +14,12 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#include "ike_cfg.h"
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include <daemon.h>
|
||||
#include "ike_cfg.h"
|
||||
|
||||
#include <daemon.h>
|
||||
|
||||
ENUM(ike_version_names, IKE_ANY, IKEV2,
|
||||
"IKEv1/2",
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "xauth_manager.h"
|
||||
|
||||
#include <collections/linked_list.h>
|
||||
|
|
|
@ -13,14 +13,15 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "ita_attr.h"
|
||||
#include "ita_attr_command.h"
|
||||
|
||||
#include <pen/pen.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct private_ita_attr_command_t private_ita_attr_command_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "ita_attr.h"
|
||||
#include "ita_attr_get_settings.h"
|
||||
|
||||
|
@ -22,8 +25,6 @@
|
|||
#include <pen/pen.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct private_ita_attr_get_settings_t private_ita_attr_get_settings_t;
|
||||
|
||||
/**
|
||||
|
@ -166,7 +167,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
|
|||
status = SUCCESS;
|
||||
|
||||
end:
|
||||
reader->destroy(reader);
|
||||
reader->destroy(reader);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -182,7 +183,7 @@ METHOD(pa_tnc_attr_t, destroy, void,
|
|||
{
|
||||
if (ref_put(&this->ref))
|
||||
{
|
||||
this->list->destroy_function(this->list, free);
|
||||
this->list->destroy_function(this->list, free);
|
||||
free(this->value.ptr);
|
||||
free(this);
|
||||
}
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "ita_attr.h"
|
||||
#include "ita_attr_settings.h"
|
||||
|
||||
|
@ -22,8 +25,6 @@
|
|||
#include <pen/pen.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct private_ita_attr_settings_t private_ita_attr_settings_t;
|
||||
typedef struct entry_t entry_t;
|
||||
|
||||
|
@ -211,7 +212,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
|
|||
status = SUCCESS;
|
||||
|
||||
end:
|
||||
reader->destroy(reader);
|
||||
reader->destroy(reader);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -227,7 +228,7 @@ METHOD(pa_tnc_attr_t, destroy, void,
|
|||
{
|
||||
if (ref_put(&this->ref))
|
||||
{
|
||||
this->list->destroy_function(this->list, (void*)free_entry);
|
||||
this->list->destroy_function(this->list, (void*)free_entry);
|
||||
free(this->value.ptr);
|
||||
free(this);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "imv_attestation_agent.h"
|
||||
#include "imv_attestation_state.h"
|
||||
#include "imv_attestation_process.h"
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "imv_attestation_process.h"
|
||||
|
||||
#include <imcv.h>
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "tcg_pts_attr_req_file_meas.h"
|
||||
|
||||
#include <pa_tnc/pa_tnc_msg.h>
|
||||
|
@ -20,8 +23,6 @@
|
|||
#include <bio/bio_reader.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct private_tcg_pts_attr_req_file_meas_t private_tcg_pts_attr_req_file_meas_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "tcg_pts_attr_req_file_meta.h"
|
||||
|
||||
#include <pa_tnc/pa_tnc_msg.h>
|
||||
|
@ -20,8 +23,6 @@
|
|||
#include <bio/bio_reader.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct private_tcg_pts_attr_req_file_meta_t private_tcg_pts_attr_req_file_meta_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <string.h>
|
||||
|
||||
#include "tcg_pts_attr_unix_file_meta.h"
|
||||
|
||||
#include <pa_tnc/pa_tnc_msg.h>
|
||||
|
@ -21,8 +24,6 @@
|
|||
#include <collections/linked_list.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct private_tcg_pts_attr_file_meta_t private_tcg_pts_attr_file_meta_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "x509_cert.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "x509_cert.h"
|
||||
|
||||
#include <library.h>
|
||||
#include <utils/debug.h>
|
||||
#include <asn1/oid.h>
|
||||
|
|
|
@ -13,13 +13,15 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
#include "tnc.h"
|
||||
|
||||
#define _GNU_SOURCE /* for stdndup() */
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "tnc.h"
|
||||
|
||||
#include <utils/lexparser.h>
|
||||
#include <utils/debug.h>
|
||||
|
|
Loading…
Reference in New Issue