Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

timegm is not declared on Haiku

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp

Research direction

Start in src/Datetime.cpp around line 27 and reproduce the Haiku build, checking how timegm is declared. Compare the suggested source define with the CMake CXX flags used by libshared. Done means the Haiku build compiles without the undeclared timegm error and the relevant build configuration is verified.

Written by the indexing model from the issue text.

Description

Adding +#define _DEFAULT_SOURCE at https://github.com/GothenburgBitFactory/libshared/blob/9a5f24e2acb38d05afb8f8e316a966dee196a42a/src/Datetime.cpp#L27 fixes it.
Passing -DCMAKE_CXX_FLAGS="-D_STANDARD_SOURCE" when building taskwarrior doesn't seem to pass it over to libshared

Dominant language
C++
Stars
7
Forks
30
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GothenburgBitFactory/libshared

All issues in GothenburgBitFactory/libshared

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.