sunmenu: Define _GNU_SOURCE, so that <time.h> declares strptime

The function isan X/Open extension that is not available by default in
the glibc headers.  Currently, this works because compilers support
implicit function declarations, but future versions are likely to
disable by them default, to improve type safety.
This commit is contained in:
Florian Weimer 2023-01-19 12:42:17 +01:00
parent 0a1b50503b
commit 661a08f21a
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 _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>