Bug 161110 - /usr/src/sys/arm/include/signal.h is bad
Summary: /usr/src/sys/arm/include/signal.h is bad
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 8.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 22:40 UTC by Naoyuki Tai
Modified: 2014-07-26 04:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naoyuki Tai 2011-09-28 22:40:06 UTC
The header file arm/include/signal.h contains the sigcontext data structure with no fields.
GCC does not like the empty struct, reports "syntax error" from the compiler, causing the build to fail.
Because of this, sparc64's struct definition ( /usr/src/sys/sparc64/include/signal.h) contains one "_dummy" in it.

Fix: 

I could imagine that, similar to sparc64, it needs a dummy member field in the sigcontex, but I'm not an export.
How-To-Repeat: Compile a program with cc and the source code includes
#include <machine/sginal.h>
Comment 1 Ian Lepore freebsd_committer freebsd_triage 2014-07-26 04:21:16 UTC
Fix was committed in r248153 on 2013-03-11