Project

General

Profile

Actions

Bug #11481

open

libdevinfo.h and threads.h can't be used together

Added by Alexander Pyhalov over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

When libdevinfo.h and threads.h are used together, we get

n file included from test.c:2:0:
/usr/include/threads.h:50:23: error: conflicting types for ‘tss_t’
 typedef pthread_key_t tss_t;
                       ^
In file included from /usr/include/sys/segments.h:59:0,
                 from /usr/include/sys/pcb.h:31,
                 from /usr/include/sys/klwp.h:38,
                 from /usr/include/sys/thread.h:37,
                 from /usr/include/sys/copyops.h:31,
                 from /usr/include/sys/watchpoint.h:32,
                 from /usr/include/vm/as.h:46,
                 from /usr/include/sys/devops.h:37,
                 from /usr/include/sys/sunddi.h:40,
                 from /usr/include/libdevinfo.h:35,
                 from test.c:1:
/usr/include/sys/tss.h:169:22: note: previous declaration of ‘tss_t’ was here
 typedef struct tss32 tss_t;
                      ^


Files

test.c (73 Bytes) test.c Alexander Pyhalov, 2019-07-19 06:43 AM

No data to display

Actions

Also available in: Atom PDF