Skip to content

Commit

Permalink
move the include of time.h
Browse files Browse the repository at this point in the history
The definition of the newly used _POSIX_SOURCE affects preprocessing of the time.h. As result on RHEL7 (possibly 6 as well) the timespec structure is not defined.
  • Loading branch information
xambroz authored Nov 4, 2023
1 parent 63c64b9 commit 4747ce6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#define _DEFAULT_SOURCE
#endif

#include <time.h>

#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
Expand All @@ -42,7 +44,6 @@
#include <ncurses.h>
#include <panel.h>
#include <stdint.h>
#include <time.h>
#include <libconfig.h>
#include <string.h>
#include <strings.h>
Expand Down

0 comments on commit 4747ce6

Please sign in to comment.