Make macOS build working again

This commit is contained in:
Marek Kraus 2023-01-21 10:08:26 +01:00
parent 626522e074
commit 3325f3725e
5 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include "../../data/bl60x_eflash_loader.h"
#include "blisp.h"

View File

@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include "../../data/bl70x_eflash_loader.h"
#include "blisp.h"

View File

@ -3,7 +3,7 @@
#include <argtable3.h>
#include <blisp.h>
#include <inttypes.h>
#include <malloc.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View File

@ -9,6 +9,8 @@
// These are not thread safe, but it doesn't place the responsibility
// to free an allocated buffer on the caller.nn
#include <stdlib.h>
static void util_get_executable_path(char* buffer_out, uint32_t max_size) {
assert(max_size >= PATH_MAX); // n.b. 1024 on MacOS. 4K on most Linux.

View File

@ -14,10 +14,7 @@ typedef SSIZE_T ssize_t;
#elif defined(__APPLE__)
#include <sys/syslimits.h>
#include <assert.h>
#endif
#ifdef __linux__
#include <linux/limits.h>
#include <sys/types.h>
#endif
ssize_t util_get_binary_folder(char* buffer, uint32_t buffer_size);