Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
9d6ba1c8
Commit
9d6ba1c8
authored
Oct 06, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solaris fix
parent
b7c58996
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+3
-1
No files found.
skeletons/GeneralizedTime.c
View file @
9d6ba1c8
...
...
@@ -4,6 +4,7 @@
*/
#define _POSIX_PTHREAD_SEMANTICS
/* for Sun */
#define _REENTRANT
/* for Sun */
#define __EXTENSIONS__
/* for Sun */
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
/* for timegm(3) */
#endif
...
...
@@ -48,7 +49,7 @@ static struct tm *gmtime_r(const time_t *tloc, struct tm *result) {
#endif
/* _WIN32 */
#if defined(sun) || defined(_
sun_
) || defined(__solaris__)
#if defined(sun) || defined(_
_sun
) || defined(__solaris__)
#define _EMULATE_TIMEGM
#endif
...
...
@@ -144,6 +145,7 @@ static long GMTOFF(struct tm a){
#ifndef HAVE_TIMEGM
#ifdef _EMULATE_TIMEGM
#include <stdlib.h>
static
time_t
timegm
(
struct
tm
*
tm
)
{
time_t
tloc
;
ATZVARS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment