diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2017-11-02 15:07:23 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-10 13:33:03 +0100 |
commit | 79ad9525a22299f110a38974278243279b377ffc (patch) | |
tree | 85c4d7a2537e7ef6e56f11058079365820465b93 | |
parent | wpa_supplicant: Add lock. (diff) | |
download | rtems-libbsd-79ad9525a22299f110a38974278243279b377ffc.tar.bz2 |
wpa_supplicant: Include rtems-bsd-program.h.
-rw-r--r-- | freebsd/contrib/wpa/src/eap_peer/eap_methods.c | 3 | ||||
-rw-r--r-- | freebsd/contrib/wpa/src/utils/includes.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/freebsd/contrib/wpa/src/eap_peer/eap_methods.c b/freebsd/contrib/wpa/src/eap_peer/eap_methods.c index 7af5a535..44b4af92 100644 --- a/freebsd/contrib/wpa/src/eap_peer/eap_methods.c +++ b/freebsd/contrib/wpa/src/eap_peer/eap_methods.c @@ -8,6 +8,9 @@ * See README for more details. */ +#ifdef __rtems__ +#define RTEMS_BSD_PROGRAM_NO_FREE_WRAP +#endif /* __rtems__ */ #include "includes.h" #ifdef CONFIG_DYNAMIC_EAP_METHODS #include <dlfcn.h> diff --git a/freebsd/contrib/wpa/src/utils/includes.h b/freebsd/contrib/wpa/src/utils/includes.h index 75513fc8..b2227c3f 100644 --- a/freebsd/contrib/wpa/src/utils/includes.h +++ b/freebsd/contrib/wpa/src/utils/includes.h @@ -13,6 +13,13 @@ #ifndef INCLUDES_H #define INCLUDES_H +#ifdef __rtems__ +#include <machine/rtems-bsd-program.h> +#define os_malloc(x) rtems_bsd_program_malloc((x)) +#define os_realloc(x, y) rtems_bsd_program_realloc((x), (y)) +#define os_free(x) rtems_bsd_program_free((x)) +#define os_strdup(x) rtems_bsd_program_strdup((x)) +#endif /* __rtems__ */ /* Include possible build time configuration before including anything else */ #include "build_config.h" |