refactor(linux): Unified libbsd handling

* Users can now use libbsd string.h and sys/cdefs.h functionality
  (e.g., strlcpy, containerof) on Linux by just including
  string.h or sys/cdefs.h. In other words, the includes are the same
  on the Linux target as well as on chips targets (ESP32, etc.).
* libbsd linking is done by the linux component (belongs to common
  components) now instead of handling it separately in each component
This commit is contained in:
Jakob Hasse
2024-03-06 15:21:10 +08:00
parent 8e863fa9a8
commit 4d629be602
20 changed files with 61 additions and 83 deletions

View File

@@ -12,10 +12,10 @@
#include <termios.h>
#include <string.h>
#include <assert.h>
#include <sys/cdefs.h>
#include "sdkconfig.h"
#include "esp_log.h"
#include "esp_linux_helper.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"