NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/39744: src/sys/sys/power.h needs types.h



>Number:         39744
>Category:       lib
>Synopsis:       src/sys/sys/power.h needs types.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 15 14:55:00 +0000 2008
>Originator:     Frederic Jaeckel
>Release:        4.99.72
>Organization:
>Environment:
NetBSD xanti.home.jc-ix.net 4.99.72 NetBSD 4.99.72 (GENERIC) #4: Tue Sep 30 
12:29:20 CEST 2008  
root%xanti.home.jc-ix.net@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Description:
The src/sys/sys/power.h (filed under /usr/include/sys/power.h) needs a #include 
<types.h>, because of serious errors.

In file included from /usr/include/sys/envsys.h:40,
                 from aps.c:1:
/usr/include/sys/power.h:105: error: expected specifier-qualifier-list before 
'int32_t'
/usr/include/sys/power.h:222: error: expected specifier-qualifier-list before 
'int32_t'
/usr/include/sys/power.h:237: error: expected specifier-qualifier-list before 
'int32_t'
In file included from aps.c:1:
/usr/include/sys/envsys.h:53: error: expected specifier-qualifier-list before 
'uint32_t'
/usr/include/sys/envsys.h:155: error: expected specifier-qualifier-list before 
'u_int'
/usr/include/sys/envsys.h:212: error: expected specifier-qualifier-list before 
'u_int'

>How-To-Repeat:
#include <sys/envsys.h> in your C code.
>Fix:
Index: power.h
===================================================================
RCS file: /cvsroot/src/sys/sys/power.h,v
retrieving revision 1.12
diff -u -r1.12 power.h
--- power.h     22 Aug 2008 11:27:50 -0000      1.12
+++ power.h     15 Oct 2008 14:54:24 -0000
@@ -43,6 +43,7 @@
 #define        _SYS_POWER_H_
 
 #include <sys/ioccom.h>
+#include <types.h>
 
 /*
  * Power Switches:



Home | Main Index | Thread Index | Old Index