Skip to content

Commit

Permalink
Fix compilation of TempFile under esp8266.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed May 28, 2024
1 parent 52f2f0d commit 7772223
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/os/TempFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@
#define _DARWIN_C_SOURCE // mkdtemp
#endif

#if defined(ESP_NONOS)
#define __sh__ // for ftruncate
#endif

#include "os/TempFile.hxx"

#include <unistd.h>

/// @todo mingw does not seem to have an mkdtemp call.
#if !defined(__FreeRTOS__) && !defined(__WINNT__)
TempDir::TempDir()
Expand Down

0 comments on commit 7772223

Please sign in to comment.