Skip to content

Conversation

@Ansuel
Copy link
Contributor

@Ansuel Ansuel commented Nov 20, 2025

Fix compilation error for missing pthread_t type name.

rtpp_proc_async.h:44:34: error: unknown type name 'pthread_t'
44 | void rtpp_proc_async_setprocname(pthread_t thread_id, const char *pname);
| ^~~~~~~~~

Fix compilation error for missing pthread_t type name.

rtpp_proc_async.h:44:34: error: unknown type name 'pthread_t'
   44 | void rtpp_proc_async_setprocname(pthread_t thread_id, const char *pname);
      |                                  ^~~~~~~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
@sobomax
Copy link
Member

sobomax commented Jan 19, 2026

@Ansuel I'd prefer not to include .h from another .h since it pollutes name space. As such, could you please let me know which .c file specifically are you having issue with compiling? The error message that you included only lists .h.

@Ansuel
Copy link
Contributor Author

Ansuel commented Jan 19, 2026

@sobomax well the problem is really in

void rtpp_proc_async_setprocname(pthread_t thread_id, const char *pname);

for the unknown pthread_t

@sobomax
Copy link
Member

sobomax commented Jan 28, 2026

@Ansuel I've moved rtpp_proc_async_setprocname() into a separate file, so it can only be included into files that use it. This should eliminate the need to have pthread_t to be defined in many places. Please check and let me know if something is till not right. Thanks!

@Ansuel
Copy link
Contributor Author

Ansuel commented Jan 28, 2026

Ok will sync with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants