Skip to content

Commit d3f5689

Browse files
author
Martin Crossley
committed
explicitly include <stdlib.h> in case it isn't pulled in by lwIP
setenv() requires <stdlib.h> which is included via lwIP. Make it explicit in case someone uses the timezone code in a different context.
1 parent c4f139a commit d3f5689

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pico_w/wifi/ntp_system_time/ntp_system_time.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <stdio.h>
8+
#include <stdlib.h> // needed for setenv(), although also included by lwIP
89
#include "pico/stdlib.h"
910
#include "pico/cyw43_arch.h"
1011
#include "lwip/apps/sntp.h"

0 commit comments

Comments
 (0)