-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
81 changed files
with
3,338 additions
and
2,098 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @author Michal Vasko <[email protected]> | ||
* @brief compatibility functions header | ||
* | ||
* Copyright (c) 2021 CESNET, z.s.p.o. | ||
* Copyright (c) 2021 - 2023 CESNET, z.s.p.o. | ||
* | ||
* This source code is licensed under BSD 3-Clause License (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
|
@@ -65,11 +65,10 @@ | |
#cmakedefine HAVE_STRCHRNUL | ||
#cmakedefine HAVE_GET_CURRENT_DIR_NAME | ||
#cmakedefine HAVE_PTHREAD_MUTEX_TIMEDLOCK | ||
#cmakedefine HAVE_TM_GMTOFF | ||
#cmakedefine HAVE_TIME_H_TIMEZONE | ||
#cmakedefine HAVE_REALPATH | ||
#cmakedefine HAVE_LOCALTIME_R | ||
#cmakedefine HAVE_GMTIME_R | ||
#cmakedefine HAVE_TIMEGM | ||
#cmakedefine HAVE_STRPTIME | ||
#cmakedefine HAVE_MMAP | ||
#cmakedefine HAVE_DIRNAME | ||
|
@@ -188,6 +187,18 @@ char *realpath(const char *path, char *resolved_path); | |
struct tm *localtime_r(const time_t *timep, struct tm *result); | ||
#endif | ||
|
||
#ifndef HAVE_GMTIME_R | ||
struct tm *gmtime_r(const time_t *timep, struct tm *result); | ||
#endif | ||
|
||
#ifndef HAVE_TIMEGM | ||
# if defined (_WIN32) | ||
# define timegm _mkgmtime | ||
# else | ||
# error No timegm() implementation for this platform is available. | ||
# endif | ||
#endif | ||
|
||
#ifndef HAVE_STRPTIME | ||
char *strptime(const char *s, const char *format, struct tm *tm); | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.