Skip to content

Commit

Permalink
c11 vs gnu11 drops certain definitions (CLOCK_REALTIME) and function …
Browse files Browse the repository at this point in the history
…prototypes (#2066)

* Resolve with #define _POSIX_C_SOURCE 200809L.
  • Loading branch information
hfp committed Apr 13, 2022
1 parent a1dac8c commit 42d4634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dbm/dbm_miniapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/* SPDX-License-Identifier: BSD-3-Clause */
/*----------------------------------------------------------------------------*/

// needed for struct timespec
#define _POSIX_C_SOURCE 200809L

#include <assert.h>
#include <omp.h>
#include <stdint.h>
Expand Down

0 comments on commit 42d4634

Please sign in to comment.