Fix #73: resolve strptime() implicit declaration

This silences the compiler warning:
```
sunmenu.c: In function ‘readSOHOImage’:
sunmenu.c:926:3: warning: implicit declaration of function ‘strptime’; did you mean ‘strftime’? [-Wimplicit-function-declaration]
  926 |   strptime(buf+20, "%d %b %Y %H:%M:%S %Z", &tm);
```
This commit is contained in:
Brandon Rhodes 2024-02-16 13:50:28 -05:00
parent b035e69540
commit 30e14f685e
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
/* code to manage the sun display
*/
/* For the declaration of strptime in <time.h>. */
#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>