Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
da9211b0
Commit
da9211b0
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Use -D_POSIX_PTHREAD_SEMANTICS even if not threads are being used to force
the correct implementation of ctime_r() to be used.
parent
5919656b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/build/Common.gmake
+2
-0
2 additions, 0 deletions
src/build/Common.gmake
src/xpdev/genwrap.h
+1
-7
1 addition, 7 deletions
src/xpdev/genwrap.h
with
3 additions
and
7 deletions
src/build/Common.gmake
+
2
−
0
View file @
da9211b0
...
...
@@ -269,6 +269,8 @@ else
XP_SEM := 1
MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
MT_CFLAGS += -DUSE_XP_SEMAPHORES
# This makes ctime_r() be the correct one.
CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
else # Linux / Other UNIX
XP_SEM := 1
MT_CFLAGS += -DUSE_XP_SEMAPHORES
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/genwrap.h
+
1
−
7
View file @
da9211b0
...
...
@@ -277,13 +277,7 @@ DLLEXPORT int DLLCALL get_errno(void);
#endif
#if defined(__solaris__)
/*
* Solaris actually does have TWO ctime_r() implementations.
* there is proboble a CORRECT way of selecting one, but I don't
* have time to look it up right now.
* This is therefore, a Kludge. ToDo
*/
#define CTIME_R(x,y) __posix_ctime_r(x,y)
#define CTIME_R(x,y) ctime_r(x,y)
/* #define CTIME_R(x,y) ctime_r(x,y,sizeof y) */
#else
#define CTIME_R(x,y) ctime_r(x,y)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment