Skip to content

ENT-13084: Fixed implicit declaration of GNU extension gettid#1779

Closed
larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi:gettid
Closed

ENT-13084: Fixed implicit declaration of GNU extension gettid#1779
larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi:gettid

Conversation

@larsewi
Copy link
Copy Markdown
Contributor

@larsewi larsewi commented Jun 26, 2025

Fixes current compilation error (found on Ubuntu 24):

23:16:48 log.c:637:21: error: implicit declaration of function 'gettid'; did you mean 'getgid'? [-Wimplicit-function-declaration]
23:16:48   637 |         pid_t tid = gettid();
23:16:48       |                     ^~~~~~
23:16:48       |                     getgid

Ticket: ENT-13084
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Back-ported to:

@larsewi larsewi changed the title Fixed implicit declaration of GNU extension gettid ENT-13084: Fixed implicit declaration of GNU extension gettid Jun 26, 2025
@larsewi
Copy link
Copy Markdown
Contributor Author

larsewi commented Jun 26, 2025

Build on Ubuntu 24 (no tests)
Build Status

Fixes current compilation error (found on Ubuntu 24):

```
23:16:48 log.c:637:21: error: implicit declaration of function 'gettid'; did you mean 'getgid'? [-Wimplicit-function-declaration]
23:16:48   637 |         pid_t tid = gettid();
23:16:48       |                     ^~~~~~
23:16:48       |                     getgid
```

Ticket: ENT-13084
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi
Copy link
Copy Markdown
Contributor Author

larsewi commented Jun 30, 2025

Will add as part of #1770

@larsewi larsewi closed this Jun 30, 2025
@larsewi larsewi deleted the gettid branch April 27, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant