Skip to content

ENT-13084: Fixed implicit declaration of GNU extension gettid (3.24.x)#1780

Closed
larsewi wants to merge 1 commit intocfengine:3.24.xfrom
larsewi:gettid-3.24.x
Closed

ENT-13084: Fixed implicit declaration of GNU extension gettid (3.24.x)#1780
larsewi wants to merge 1 commit intocfengine:3.24.xfrom
larsewi:gettid-3.24.x

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
(cherry picked from commit 5057687)

Back-ported from #1779

@larsewi larsewi changed the title Fixed implicit declaration of GNU extension gettid ENT-13084: Fixed implicit declaration of GNU extension gettid (3.24.x) 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>
(cherry picked from commit a42746b)
@larsewi
Copy link
Copy Markdown
Contributor Author

larsewi commented Jun 30, 2025

Will add as part of back-ports from #1770

@larsewi larsewi closed this Jun 30, 2025
@larsewi larsewi deleted the gettid-3.24.x 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