Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Apparent Bug in AXP's sem.h
@ 1996-10-23 13:21 Robert Klein
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Klein @ 1996-10-23 13:21 UTC (permalink / raw)


Try compiling the following program.

#include <sys/sem.h>

main()
{
}

and you get:

In file included from rob.c:1:
/usr/include/sys/sem.h:39: redefinition of `struct sembuf'

A bug in the include file?

Rob

=======================================================================
Robert Klein                                         Pulse Incorporated
Network Manager/Staff Engineer                 12117 Indian Creek Court
robk@pulse-sys.com                                 Beltsville, MD 20705
http://tiny.iapnet.com/rob                        http://www.iapnet.com
-----------------------------------------------------------------------
Balt 410-813-2101 Fax 410-813-2712   Wash 301-470-6000 Fax 301-210-3932
=======================================================================

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Apparent Bug in AXP's sem.h
@ 1996-10-23 13:33 Robert Klein
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Klein @ 1996-10-23 13:33 UTC (permalink / raw)


>In file included from rob.c:1:
>/usr/include/sys/sem.h:39: redefinition of `struct sembuf'
>
>A bug in the include file?

Apparently 'struct sembuf' is defined in both sys/sem.h and asm/sembits.h.
sys/sem.h includes sys/sem_buf.h which in turn includes asm/sembits.h.  Here's
the diff for the changes I made to sys/sem.h to fix this problem:

37d36
< #ifndef _ASM_ALPHA_SEMBITS_H
45d43
< #endif

Has this already been taken care of?  I find it hard to believe that this is
the first time is has shown up.

Rob

=======================================================================
Robert Klein                                         Pulse Incorporated
Network Manager/Staff Engineer                 12117 Indian Creek Court
robk@pulse-sys.com                                 Beltsville, MD 20705
http://tiny.iapnet.com/rob                        http://www.iapnet.com
-----------------------------------------------------------------------
Balt 410-813-2101 Fax 410-813-2712   Wash 301-470-6000 Fax 301-210-3932
=======================================================================

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <199610231319.JAA24421@mail.pulse-sys.com>]

end of thread, other threads:[~1996-10-23 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-23 13:21 Apparent Bug in AXP's sem.h Robert Klein
  -- strict thread matches above, loose matches on Subject: below --
1996-10-23 13:33 Robert Klein
     [not found] <199610231319.JAA24421@mail.pulse-sys.com>
1996-10-23 16:02 ` Bernd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox