Bug 9887

Summary: sessreg should include sys/types.h on FreeBSD
Product: xorg Reporter: Roy Marples <uberlord>
Component: App/xdmAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Include sys/types.h if we have it none

Description Roy Marples 2007-02-06 04:44:18 UTC
In file included from sessreg.h:59,
                 from sessreg.c:77:
/usr/include/utmp.h:54: error: expected specifier-qualifier-list before 'int32_t'
/usr/include/utmp.h:63: error: expected specifier-qualifier-list before 'int32_t'
sessreg.c: In function 'set_utmp':
sessreg.c:421: error: 'struct utmp' has no member named 'ut_time'
gmake[1]: *** [sessreg-sessreg.o] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/x11-apps/sessreg-1.0.2/work/sessreg-1.0.2'
gmake: *** [all] Error 2
Comment 1 Roy Marples 2007-02-06 04:44:50 UTC
Created attachment 8606 [details] [review]
Include sys/types.h if we have it
Comment 2 Daniel Stone 2007-02-27 01:36:12 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 Alan Coopersmith 2007-06-11 16:41:18 UTC
Thanks for the report - fix checked into git master:


commit 136525f01e4ce8e60e8c78b44654d8f6861233d2
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Mon Jun 11 16:38:00 2007 -0700

    X.Org Bug #9887: sessreg should include sys/types.h on FreeBSD
    
    X.Org Bugzilla #9887: <https://bugs.freedesktop.org/show_bug.cgi?id=9887>

(Just added it directly without #ifdefs, since all supported systems have 
 <sys/types.h> and other Xorg code already includes without any checks.)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.