mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-05-10 19:00:57 +08:00
fix: add _DARWIN_C_SOURCE for timegm() on macOS CI
This commit is contained in:
parent
d745a8e1fe
commit
0de13a6314
1 changed files with 5 additions and 0 deletions
|
|
@ -1,4 +1,9 @@
|
|||
#ifndef _DEFAULT_SOURCE
|
||||
#define _DEFAULT_SOURCE /* for timegm() on glibc */
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
#define _DARWIN_C_SOURCE /* for timegm() on macOS */
|
||||
#endif
|
||||
#include "message.h"
|
||||
#include "utf8.h"
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue